On Thu, Apr 23, 2015 at 03:42:19PM +0200, Stephan Mueller wrote: > > Now, shall I kind of re-implement the chainiv ablkcipher wrapper into an IV > handler that just helps my code? That will be a lot of code for a simple > memcmp. No no no. You don't need to do a template for givencrypt. chainiv is a template because it can be used by any blkcipher. In your case your fixed IV is only used by you. So just implement givencrypt and givdecrypt directly in your blkcipher (or ablkcipher rather because only ablkcipher supports givencrypt/givdecrypt). If you really want to keep the underlying kw as a blkcipher for the sake of simplicity you could go back to the wrapper idea and have the rfc wrapper around kw as an ablkcipher so that you can add the givencrypt/givdecrypt calls. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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