commit | fcac83656a3e3b15e7a16b4a64ee5067eecec446 | [log] [tgz] |
---|---|---|
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | Thu Dec 17 18:13:05 2015 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Dec 23 18:19:57 2015 +0800 |
tree | d6cb08952fd2f4199960f22350f7b34969048504 | |
parent | da7b850edb68ab6e3e3cc8593c6ce2c577b6b61c [diff] |
crypto: atmel-aes - fix the counter overflow in CTR mode Depending on its hardware version, the AES IP provides either a 16 or a 32 bit counter. However the CTR mode expects the size of the counter to be the same as the size of the cipher block, ie 128 bits for AES. This patch detects and handles counter overflows. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>