Re: [IPsec] IV in ESP packets for AES-CBC and AES-CTR methods
ss murthy nittala <ssmurthy.nittala@freescale.com> Mon, 11 May 2009 14:44 UTC
Return-Path: <ssmurthy.nittala@freescale.com>
X-Original-To: ipsec@core3.amsl.com
Delivered-To: ipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 218163A6F6E for <ipsec@core3.amsl.com>; Mon, 11 May 2009 07:44:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.699
X-Spam-Level:
X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[AWL=1.300, BAYES_00=-2.599, J_CHICKENPOX_72=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l+ZOAaFvfV3P for <ipsec@core3.amsl.com>; Mon, 11 May 2009 07:44:53 -0700 (PDT)
Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) by core3.amsl.com (Postfix) with ESMTP id 5841D3A6EA2 for <ipsec@ietf.org>; Mon, 11 May 2009 07:44:53 -0700 (PDT)
Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id n4BEkCYW014330; Mon, 11 May 2009 07:46:17 -0700 (MST)
Received: from nsmurthy.freescale.com ([10.232.113.68]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id n4BEk8Xo017104; Mon, 11 May 2009 09:46:11 -0500 (CDT)
Message-Id: <200905111446.n4BEk8Xo017104@az33smr01.freescale.net>
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
Date: Mon, 11 May 2009 20:22:05 +0530
To: Tero Kivinen <kivinen@iki.fi>
From: ss murthy nittala <ssmurthy.nittala@freescale.com>
In-Reply-To: <18952.13961.78245.997197@fireball.kivinen.iki.fi>
References: <200905111404.n4BE4Nns002222@az33smr01.freescale.net> <18952.13961.78245.997197@fireball.kivinen.iki.fi>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Brightmail-Tracker: AAAAAQAAAWE=
Cc: ipsec@ietf.org
Subject: Re: [IPsec] IV in ESP packets for AES-CBC and AES-CTR methods
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipsec>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 May 2009 14:44:54 -0000
The following sentence present in RFC 3602 creates some doubts whether IV in each packet is mandatory or not? "Including the IV in each datagram ensures that decryption of each received datagram can be performed, even when some datagrams are dropped, or datagrams are re-ordered in transit." Thanks -ns murthy At 08:00 PM 5/11/2009, Tero Kivinen wrote: >ss murthy nittala writes: > > Is it required for IV to be randomly generated for each ESP packet in > > case of AES-CTR and AES-CBC methods? > > > > AES-CTR:My understanding is that IV is to be generated randomly for > > the first packet.For each new outgoing packet increment IV and use it. > > From RFC3686: > > The AES-CTR IV field MUST be eight octets. The IV MUST be chosen by > the encryptor in a manner that ensures that the same IV value is used > only once for a given key. The encryptor can generate the IV in any > manner that ensures uniqueness. Common approaches to IV generation > include incrementing a counter for each packet and linear feedback > shift registers (LFSRs). > >I.e. it MUST be unique, but there is no other requirements for it. >Incremental counter is one commonly used method. > > > AES-CBC:Is it required for IV to be randomly generated for each of > > the outgoing ESP packets?In any case i think the packet shall include IV. > > From RFC3602: > > The IV field MUST be the same size as the block size of the cipher > algorithm being used. The IV MUST be chosen at random, and MUST be > unpredictable. >... > To avoid CBC encryption of very similar plaintext blocks in different > packets, implementations MUST NOT use a counter or other low-Hamming > distance source for IVs. > >I.e. it MUST be unpredictable, i.e. randomly generated is good. Using >the final ciphertext block of the previous message is NOT acceptable. >-- >kivinen@iki.fi
- [IPsec] IV in ESP packets for AES-CBC and AES-CTR… ss murthy nittala
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… Dan McDonald
- [IPsec] IV in ESP packets for AES-CBC and AES-CTR… Tero Kivinen
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… ss murthy nittala
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… Paul Koning
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… Dan McDonald
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… Paul Hoffman
- Re: [IPsec] IV in ESP packets for AES-CBC and AES… Stephen Kent