]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure -reduce hash byte counters to 64 bits
authorPascal van Leeuwen <pascalvanl@gmail.com>
Fri, 5 Jul 2019 07:36:31 +0000 (09:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 12:08:01 +0000 (22:08 +1000)
commit023d2c10bf8c5334c166a6870fdb5476ab7ba599
tree4381440646ae49312ceb36d7938a9574a465b46f
parent8c4a48756b78919536dcf9d53bf48610eaf7371f
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>
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_hash.c