diff options
author | Antoine Tenart <antoine.tenart@bootlin.com> | 2018-05-29 14:13:44 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-06-22 23:03:00 +0800 |
commit | 25bc95510317dc7259299adb786f050617199b42 (patch) | |
tree | 119f0892148c65375d207fbda5463be037a84270 /crypto | |
parent | cda3e73a54971e38a7388db0132c3681eab87847 (diff) | |
download | linux-25bc95510317dc7259299adb786f050617199b42.tar.bz2 |
crypto: inside-secure - improve the counter computation
A counter is given to the engine when finishing hash computation. It
currently uses the blocksize while it counts the number of 64 bytes
blocks given to the engine. This works well for all algorithms so far,
as SHA1, SHA224 and SHA256 all have a blocksize of 64 bytes, but others
algorithms such as SHA512 wouldn't work.
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions