History

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.

Eric Biggers committed 7 years ago

Commit 84ede581 parent 3e56e163 files · +2 −5Browse files

Showing the changes to crypto/cryptd.c (1 of 3 files). Show all

Unified · Split

crypto/cryptd.c+1−1
@@ -925,7 +925,7 @@ static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) · 924 unmodified lines
925 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {925 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) {
926 case CRYPTO_ALG_TYPE_BLKCIPHER:926 case CRYPTO_ALG_TYPE_BLKCIPHER:
927 return cryptd_create_skcipher(tmpl, tb, &queue);927 return cryptd_create_skcipher(tmpl, tb, &queue);
928 case CRYPTO_ALG_TYPE_DIGEST:928 case CRYPTO_ALG_TYPE_HASH:
929 return cryptd_create_hash(tmpl, tb, &queue);929 return cryptd_create_hash(tmpl, tb, &queue);
930 case CRYPTO_ALG_TYPE_AEAD:930 case CRYPTO_ALG_TYPE_AEAD:
931 return cryptd_create_aead(tmpl, tb, &queue);931 return cryptd_create_aead(tmpl, tb, &queue);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t