summaryrefslogtreecommitdiff
path: root/crypto/rsassa-pkcs1.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsassa-pkcs1.c')
-rw-r--r--crypto/rsassa-pkcs1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsassa-pkcs1.c b/crypto/rsassa-pkcs1.c
index d01ac75635e0..94fa5e9600e7 100644
--- a/crypto/rsassa-pkcs1.c
+++ b/crypto/rsassa-pkcs1.c
@@ -301,7 +301,7 @@ static unsigned int rsassa_pkcs1_key_size(struct crypto_sig *tfm)
{
struct rsassa_pkcs1_ctx *ctx = crypto_sig_ctx(tfm);
- return ctx->key_size;
+ return ctx->key_size * BITS_PER_BYTE;
}
static int rsassa_pkcs1_set_pub_key(struct crypto_sig *tfm,