Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: lib/sha256 - Remove redundant and unused sha224_update

The function sha224_update is exactly the same as sha256_update.
Moreover it's not even used in the kernel so it can be removed.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+1 -7
+1 -1
include/crypto/sha2.h
··· 128 128 sctx->state[7] = SHA224_H7; 129 129 sctx->count = 0; 130 130 } 131 - void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len); 131 + /* Simply use sha256_update as it is equivalent to sha224_update. */ 132 132 void sha224_final(struct sha256_state *sctx, u8 *out); 133 133 134 134 #endif /* _CRYPTO_SHA2_H */
-6
lib/crypto/sha256.c
··· 151 151 } 152 152 EXPORT_SYMBOL(sha256_update); 153 153 154 - void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len) 155 - { 156 - sha256_update(sctx, data, len); 157 - } 158 - EXPORT_SYMBOL(sha224_update); 159 - 160 154 static void __sha256_final(struct sha256_state *sctx, u8 *out, int digest_words) 161 155 { 162 156 __be32 *dst = (__be32 *)out;