]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hmac - add hmac IPAD/OPAD constant
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Fri, 19 May 2017 06:53:23 +0000 (08:53 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 23 May 2017 04:52:05 +0000 (12:52 +0800)
commitb99e4b50d0f9da897b9cd21e3357d3129213e408
tree56ad7f884c9471940518e5e69bf92c2ae316397e
parent71f1edcfe10149b1550d502b547e99de19ebfe21
crypto: hmac - add hmac IPAD/OPAD constant

Many HMAC users directly use directly 0x36/0x5c values.
It's better with crypto to use a name instead of directly some crypto
constant.

This patch simply add HMAC_IPAD_VALUE/HMAC_OPAD_VALUE defines in a new
include file "crypto/hmac.h" and use them in crypto/hmac.c

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/hmac.c
include/crypto/hmac.h [new file with mode: 0644]