diff options
Diffstat (limited to 'kernel/module_signing.c')
| -rw-r--r-- | kernel/module_signing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/module_signing.c b/kernel/module_signing.c index f2970bddc5ea..ee476404167b 100644 --- a/kernel/module_signing.c +++ b/kernel/module_signing.c | |||
| @@ -54,7 +54,7 @@ static struct public_key_signature *mod_make_digest(enum pkey_hash_algo hash, | |||
| 54 | /* Allocate the hashing algorithm we're going to need and find out how | 54 | /* Allocate the hashing algorithm we're going to need and find out how |
| 55 | * big the hash operational data will be. | 55 | * big the hash operational data will be. |
| 56 | */ | 56 | */ |
| 57 | tfm = crypto_alloc_shash(pkey_hash_algo[hash], 0, 0); | 57 | tfm = crypto_alloc_shash(pkey_hash_algo_name[hash], 0, 0); |
| 58 | if (IS_ERR(tfm)) | 58 | if (IS_ERR(tfm)) |
| 59 | return (PTR_ERR(tfm) == -ENOENT) ? ERR_PTR(-ENOPKG) : ERR_CAST(tfm); | 59 | return (PTR_ERR(tfm) == -ENOENT) ? ERR_PTR(-ENOPKG) : ERR_CAST(tfm); |
| 60 | 60 | ||
| @@ -217,7 +217,7 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen) | |||
| 217 | return -ENOPKG; | 217 | return -ENOPKG; |
| 218 | 218 | ||
| 219 | if (ms.hash >= PKEY_HASH__LAST || | 219 | if (ms.hash >= PKEY_HASH__LAST || |
| 220 | !pkey_hash_algo[ms.hash]) | 220 | !pkey_hash_algo_name[ms.hash]) |
| 221 | return -ENOPKG; | 221 | return -ENOPKG; |
| 222 | 222 | ||
| 223 | key = request_asymmetric_key(sig, ms.signer_len, | 223 | key = request_asymmetric_key(sig, ms.signer_len, |
