diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-07-20 11:55:32 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-07-30 10:58:33 +0800 |
commit | 031f5e00150895232e658f67e66382b6c867ba13 (patch) | |
tree | c9ac4bffd95c4ef20c9704be04df85fe537a3d25 /kernel/compat.c | |
parent | 0d0433599d84bf7db8caa8fb76915dc0ff818150 (diff) | |
download | linux-stable-031f5e00150895232e658f67e66382b6c867ba13.tar.gz linux-stable-031f5e00150895232e658f67e66382b6c867ba13.tar.bz2 linux-stable-031f5e00150895232e658f67e66382b6c867ba13.zip |
crypto: atmel-tdes - Add FIPS81's zero length cryptlen constraint
FIPS81 requires for the ECB, CBC, CFB, and OFB modes that the
plaintext and ciphertext to have a positive integer length.
Add this constraint and just return 0 for a zero length cryptlen.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions