+115
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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>