Re: combined mode algorithms
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-08-20 23:34:11
Joy Latten [off-list ref] wrote:
quoted
The salt will just come from the key field. So instead of having an 128-bit key for example, you'd have 152 bits.ok, quick question, this 152 bits key will be part of input to setkey()?
Yes.
The reason I am asking is because setkey in ablkcipher and blkcipher check key length for min and max size. Thus for example, aes, when using a 256 bit key, would pass in 288 bits or 36 octet key. max is 32 bits, so would result in error.
No AES or blkcipher will never see the longer key. The key will be broken up by the CCM template (yet to be written) and part of it goes to AES while the other part gets used as the nonce. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt