Re: [TLS] About the key block generation for different ciphers.

Marsh Ray <marsh@extendedsubset.com> Tue, 04 October 2011 15:04 UTC

Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1CA9E21F8C0D for <tls@ietfa.amsl.com>; Tue, 4 Oct 2011 08:04:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.578
X-Spam-Level:
X-Spam-Status: No, score=-2.578 tagged_above=-999 required=5 tests=[AWL=0.021, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bilKalaj-LWG for <tls@ietfa.amsl.com>; Tue, 4 Oct 2011 08:04:22 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) by ietfa.amsl.com (Postfix) with ESMTP id 9B56021F8BEF for <tls@ietf.org>; Tue, 4 Oct 2011 08:04:22 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from <marsh@extendedsubset.com>) id 1RB6ad-000MnW-G3; Tue, 04 Oct 2011 15:07:27 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id E1D4863BF; Tue, 4 Oct 2011 15:07:25 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19JallqZ2F0PnSYPaXxdrrkjYn2S7UJqDo=
Message-ID: <4E8B212D.5090305@extendedsubset.com>
Date: Tue, 04 Oct 2011 10:07:25 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15
MIME-Version: 1.0
To: nilesh <nilesh.tayade@netscout.com>
References: <4E8AF03D.2080702@netscout.com>
In-Reply-To: <4E8AF03D.2080702@netscout.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] About the key block generation for different ciphers.
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Oct 2011 15:04:23 -0000

On 10/04/2011 06:38 AM, nilesh wrote:
>
> Could someone please advice any reference on how to get the key_block
> details for a give cipher suit?

http://tools.ietf.org/html/rfc2246 TLS 1.0:
> 6.3. Key calculation
...
> Then the key_block is
>    partitioned as follows:
>
>        client_write_MAC_secret[SecurityParameters.hash_size]
>        server_write_MAC_secret[SecurityParameters.hash_size]
>        client_write_key[SecurityParameters.key_material_length]
>        server_write_key[SecurityParameters.key_material_length]
>        client_write_IV[SecurityParameters.IV_size]
>        server_write_IV[SecurityParameters.IV_size]
>
>    The client_write_IV and server_write_IV are only generated for non-
>    export block ciphers. For exportable block ciphers, the
>    initialization vectors are generated later, as described below. Any
>    extra key_block material is discarded.

- Marsh