Am Donnerstag, 23. April 2015, 09:33:37 schrieb Herbert Xu: Hi Herbert, > On Wed, Apr 22, 2015 at 02:23:04PM +0200, Stephan Mueller wrote: > > Isn't it a basic assumption to ablkcipher is that the ciphertext is equal > > in size as the plaintext? > > Not necessarily since a blkcipher also outputs IV which is exactly > what's happening in KW. The KW does not return an IV. The IV is used for encryption to stir the encryption a bit. The resulting ciphertext now contains the mixed in IV. For decryption, the IV is only used to verify that the one block in the decryption operation matches the IV. So, there is no IV returned by the encryption. > > For the fixed IV value you could use givencrypt so you don't even > an rfc wrapper. I am almost done with the rfc wrapper. I would like to keep the work done already :-) > > Cheers, -- Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html