Skip to content

Commit 84ede58

Browse files
ebiggersherbertx
authored andcommitted
crypto: hash - remove CRYPTO_ALG_TYPE_DIGEST
Remove the unnecessary constant CRYPTO_ALG_TYPE_DIGEST, which has the same value as CRYPTO_ALG_TYPE_HASH. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 3e56e16 commit 84ede58

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎Documentation/crypto/architecture.rst‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ the aforementioned cipher types:
208208
- CRYPTO_ALG_TYPE_KPP Key-agreement Protocol Primitive (KPP) such as
209209
an ECDH or DH implementation
210210

211-
- CRYPTO_ALG_TYPE_DIGEST Raw message digest
212-
213-
- CRYPTO_ALG_TYPE_HASH Alias for CRYPTO_ALG_TYPE_DIGEST
211+
- CRYPTO_ALG_TYPE_HASH Raw message digest
214212

215213
- CRYPTO_ALG_TYPE_SHASH Synchronous multi-block hash
216214

‎crypto/cryptd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb)
925925
switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {
926926
case CRYPTO_ALG_TYPE_BLKCIPHER:
927927
return cryptd_create_skcipher(tmpl, tb, &queue);
928-
case CRYPTO_ALG_TYPE_DIGEST:
928+
case CRYPTO_ALG_TYPE_HASH:
929929
return cryptd_create_hash(tmpl, tb, &queue);
930930
case CRYPTO_ALG_TYPE_AEAD:
931931
return cryptd_create_aead(tmpl, tb, &queue);

‎include/linux/crypto.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#define CRYPTO_ALG_TYPE_SCOMPRESS 0x0000000b
5555
#define CRYPTO_ALG_TYPE_RNG 0x0000000c
5656
#define CRYPTO_ALG_TYPE_AKCIPHER 0x0000000d
57-
#define CRYPTO_ALG_TYPE_DIGEST 0x0000000e
5857
#define CRYPTO_ALG_TYPE_HASH 0x0000000e
5958
#define CRYPTO_ALG_TYPE_SHASH 0x0000000e
6059
#define CRYPTO_ALG_TYPE_AHASH 0x0000000f

0 commit comments

Comments
 (0)