Re: [PATCH 1/1]: CTR mode implementation

2007-09-24 Thread Herbert Xu
On Mon, Sep 24, 2007 at 07:31:32PM -0500, Joy Latten wrote: > > I have another question regarding this change to using a tuple. > The size of my counter is now, csize = blocksize - (noncesize + ivsize). > rfc 3686 (CTR-AES for ESP) states in section 4, that the counter > portion of the counter blo

Re: [PATCH 1/1]: CTR mode implementation

2007-09-24 Thread Joy Latten
>> > I suggest that you make these parameters to your CTR template. >> > So instead of requesting for "ctr(aes)", you could request for >> > "ctr(aes, 4, 8)" where 4 is the length of the nonce in the >> > counter block and 8 is the length of the IV. The counter >> > itself would then be calculated