crypto: inside-secure -reduce hash byte counters to 64 bits
This patch recognises the fact that the hardware cannot ever process more than 2,199,023,386,111 bytes of hash or HMAC payload, so there is no point in maintaining 128 bit wide byte counters, 64 bits is more than sufficient Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
0e17e3621a
commit
31fb084c4e
@@ -613,8 +613,8 @@ struct safexcel_context {
|
||||
#define HASH_CACHE_SIZE SHA512_BLOCK_SIZE
|
||||
|
||||
struct safexcel_ahash_export_state {
|
||||
u64 len[2];
|
||||
u64 processed[2];
|
||||
u64 len;
|
||||
u64 processed;
|
||||
|
||||
u32 digest;
|
||||
|
||||
|
Reference in New Issue
Block a user