From dc144df32a6adac9ad7cea0b822f3ad31c0af5cf Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 1 Mar 2019 10:23:45 +1000 Subject: [PATCH] PKCS #11 id RSA - TLS don't convert length a la ecc --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 077a56bb7..576282931 100644 --- a/src/internal.c +++ b/src/internal.c @@ -17013,7 +17013,7 @@ int DecodePrivateKey(WOLFSSL *ssl, word16* length) } /* Return the maximum signature length. */ - *length = (word16)wc_ecc_sig_size_calc(ssl->buffers.keySz); + *length = (word16)ssl->buffers.keySz; } } else if (ssl->buffers.keyType == ecc_dsa_sa_algo) {