summaryrefslogtreecommitdiffstats
path: root/mm/backing-dev.c
diff options
context:
space:
mode:
authorCyrille Pitchen <cyrille.pitchen@atmel.com>2015-12-17 18:13:05 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-12-23 11:19:57 +0100
commitfcac83656a3e3b15e7a16b4a64ee5067eecec446 (patch)
treed6cb08952fd2f4199960f22350f7b34969048504 /mm/backing-dev.c
parentcrypto: atmel-aes - fix atmel-ctr-aes driver for RFC 3686 (diff)
downloadlinux-fcac83656a3e3b15e7a16b4a64ee5067eecec446.tar.xz
linux-fcac83656a3e3b15e7a16b4a64ee5067eecec446.zip
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>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions