* Herbert Xu | 2007-04-17 15:35:05 [+1000]: >It's the API's responsibility to guarantee alignment. So in principle >neither the user nor the algorithm need to worry about alignment. > >However, there is no point in doing an extra copy for the sake of >alignment since the crypto API will do it for you anyway. setkey() is for crypto user is defined as: static inline int crypto_ablkcipher_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen) { return crypto_ablkcipher_crt(tfm)->setkey(tfm, key, keylen); } If the key is not properly aligned by the caller, the cipher gets an unaligned key. What do you recommend? >Cheers, Sebastian - 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