summaryrefslogtreecommitdiff
path: root/crypto/sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/sig.c')
-rw-r--r--crypto/sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sig.c b/crypto/sig.c
index 84d0ea9fd73b..7a3521bee29a 100644
--- a/crypto/sig.c
+++ b/crypto/sig.c
@@ -125,7 +125,7 @@ int crypto_register_sig(struct sig_alg *alg)
alg->set_priv_key = sig_default_set_key;
if (!alg->set_pub_key)
return -EINVAL;
- if (!alg->max_size)
+ if (!alg->key_size)
return -EINVAL;
sig_prepare_alg(alg);