diff options
author | Cyrille Pitchen <[email protected]> | 2015-12-17 18:13:05 +0100 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2015-12-23 18:19:57 +0800 |
commit | fcac83656a3e3b15e7a16b4a64ee5067eecec446 (patch) | |
tree | d6cb08952fd2f4199960f22350f7b34969048504 /drivers/fpga/fpga-mgr.c | |
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions