Commit 47294fd
committed
crypto: atmel-aes: Add blocksize constraint for ECB and CBC modes
NIST 800-38A requires for the ECB and CBC modes that the total number
of bits in the plaintext to be a multiple of the block cipher.
-------
For CFB mode the requirement is that the plaintext to be a mutiple of
the data segments length. CFB's data segment legth is currently
represented as blocksize. Add these constraints for the ECB, CBC and
CFB modes.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent eb7e511 commit 47294fd
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1092 | 1097 | | |
1093 | 1098 | | |
1094 | 1099 | | |
| |||
1120 | 1125 | | |
1121 | 1126 | | |
1122 | 1127 | | |
1123 | | - | |
| 1128 | + | |
1124 | 1129 | | |
1125 | 1130 | | |
1126 | 1131 | | |
| |||
0 commit comments