commit | 03d7db5654aefb78bf2ded62e2187833fda2a6cc | [log] [tgz] |
---|---|---|
author | Corentin LABBE <clabbe.montjoie@gmail.com> | Fri May 19 08:53:23 2017 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Tue May 23 12:52:05 2017 +0800 |
tree | 56ad7f884c9471940518e5e69bf92c2ae316397e | |
parent | 9417cd1c517a89ccfb5cc3d3f2a0e50fc64f3445 [diff] |
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>