diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-09-01 22:35:32 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-09-05 06:54:54 +0200 |
commit | c75c66bbaa56f130e2be095402422e56f608aa62 (patch) | |
tree | ac668a21176783b830171a3b2f6e563ca54d1028 /lib/crc-t10dif.c | |
parent | crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h (diff) | |
download | linux-c75c66bbaa56f130e2be095402422e56f608aa62.tar.xz linux-c75c66bbaa56f130e2be095402422e56f608aa62.zip |
crypto: sha256 - Remove sha256/224_init code duplication
lib/crypto/sha256.c and include/crypto/sha256_base.h define
99% identical functions to init a sha256_state struct for sha224 or
sha256 use.
This commit moves the functions from lib/crypto/sha256.c to
include/crypto/sha.h (making them static inline) and makes the
sha224/256_base_init static inline functions from
include/crypto/sha256_base.h wrappers around the now also
static inline include/crypto/sha.h functions.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions