Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B47E617A07 for ; Mon, 4 May 2015 05:38:06 +0000 (UTC) Received: (qmail 50694 invoked by uid 500); 4 May 2015 05:38:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 50639 invoked by uid 500); 4 May 2015 05:38:06 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 50527 invoked by uid 99); 4 May 2015 05:38:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2015 05:38:06 +0000 Date: Mon, 4 May 2015 05:38:06 +0000 (UTC) From: "Xu Yaning (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DIRKRB-188) Calculating FAST armor key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRKRB-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xu Yaning updated DIRKRB-188: ----------------------------- Attachment: DIRKRB-188-v3.patch > Calculating FAST armor key > -------------------------- > > Key: DIRKRB-188 > URL: https://issues.apache.org/jira/browse/DIRKRB-188 > Project: Directory Kerberos > Issue Type: New Feature > Reporter: Kai Zheng > Assignee: Kai Zheng > Attachments: DIRKRB-188-v1.patch, DIRKRB-188-v2.patch, DIRKRB-188-v3.patch > > > According to the FAST spec, in section of https://tools.ietf.org/html/rfc6113#page-17, we need to implement the facility for calculating armor key given key1, key2, pepper1, and pepper2, as defined as follows. > {noformat} > KRB-FX-CF2() combines two protocol keys based on the pseudo-random() > function defined in [RFC3961]. > Given two input keys, K1 and K2, where K1 and K2 can be of two > different enctypes, the output key of KRB-FX-CF2(), K3, is derived as > follows: > KRB-FX-CF2(protocol key, protocol key, octet string, > octet string) -> (protocol key) > PRF+(K1, pepper1) -> octet-string-1 > PRF+(K2, pepper2) -> octet-string-2 > KRB-FX-CF2(K1, K2, pepper1, pepper2) := > random-to-key(octet-string-1 ^ octet-string-2) > Where ^ denotes the exclusive-OR operation. PRF+() is defined as > follows: > PRF+(protocol key, octet string) -> (octet string) > PRF+(key, shared-info) := pseudo-random( key, 1 || shared-info ) || > pseudo-random( key, 2 || shared-info ) || > pseudo-random( key, 3 || shared-info ) || ... > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)