diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2007-11-10 19:29:33 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:11 +1100 |
commit | cd7c3bfe54270f41ac52be6b725a7194d99175b4 (patch) | |
tree | 03e9378557ffb7c8e38c452b7fd637587284b518 /drivers/crypto/geode-aes.h | |
parent | 5157dea8139cf0edc4834d528531e642c0d27e37 (diff) | |
download | linux-cd7c3bfe54270f41ac52be6b725a7194d99175b4.tar.gz linux-cd7c3bfe54270f41ac52be6b725a7194d99175b4.tar.bz2 linux-cd7c3bfe54270f41ac52be6b725a7194d99175b4.zip |
[CRYPTO] geode: Add fallback for unsupported modes
The Geode AES crypto engine supports only 128 bit long key. This
patch adds fallback for other key sizes which are required by the
AES standard.
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/geode-aes.h')
-rw-r--r-- | drivers/crypto/geode-aes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/geode-aes.h b/drivers/crypto/geode-aes.h index 2f1d55982aac..14cc763da1e4 100644 --- a/drivers/crypto/geode-aes.h +++ b/drivers/crypto/geode-aes.h @@ -66,6 +66,12 @@ struct geode_aes_op { u8 key[AES_KEY_LENGTH]; u8 iv[AES_IV_LENGTH]; + + union { + struct crypto_blkcipher *blk; + struct crypto_cipher *cip; + } fallback; + u32 keylen; }; #endif |