diff options
author | Pascal van Leeuwen <pascalvanl@gmail.com> | 2019-07-05 09:36:31 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-07-26 14:08:01 +0200 |
commit | 31fb084c4eb556fac30115d99bc518c7944887d2 (patch) | |
tree | 4381440646ae49312ceb36d7938a9574a465b46f /drivers/crypto/inside-secure/safexcel.h | |
parent | crypto: inside-secure - add support for authenc(hmac(sha*),rfc3686(ctr(aes)))... (diff) | |
download | linux-31fb084c4eb556fac30115d99bc518c7944887d2.tar.xz linux-31fb084c4eb556fac30115d99bc518c7944887d2.zip |
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>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.h')
-rw-r--r-- | drivers/crypto/inside-secure/safexcel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.h b/drivers/crypto/inside-secure/safexcel.h index 04dfbbc63971..6f9875e7a0c0 100644 --- a/drivers/crypto/inside-secure/safexcel.h +++ b/drivers/crypto/inside-secure/safexcel.h @@ -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; |