Home
last modified time | relevance | path

Searched hist:"4505 bb02" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c4505bb02 Mon Mar 19 03:21:19 CDT 2018 Antoine Tenart <antoine.tenart@bootlin.com> crypto: inside-secure - the context ipad/opad should use the state sz

This patches uses the state size of the algorithms instead of their
digest size to copy the ipad and opad in the context. This doesn't fix
anything as the state and digest size are the same for many algorithms,
and for all the hmac currently supported by this driver. However
hmac(sha224) use the sha224 hash function which has a different digest
and state size. This commit prepares the addition of such algorithms.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
4505bb02 Mon Mar 19 03:21:19 CDT 2018 Antoine Tenart <antoine.tenart@bootlin.com> crypto: inside-secure - the context ipad/opad should use the state sz

This patches uses the state size of the algorithms instead of their
digest size to copy the ipad and opad in the context. This doesn't fix
anything as the state and digest size are the same for many algorithms,
and for all the hmac currently supported by this driver. However
hmac(sha224) use the sha224 hash function which has a different digest
and state size. This commit prepares the addition of such algorithms.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>