wolfssl: Set RSA key type

This commit is contained in:
Andreas Steffen 2021-05-30 12:39:59 +02:00
parent d654117c66
commit 62c5ef035c
1 changed files with 2 additions and 0 deletions

View File

@ -686,6 +686,8 @@ wolfssl_rsa_private_key_t *wolfssl_rsa_private_key_load(key_type_t type,
}
else if (n.ptr && e.ptr && d.ptr)
{
this->rsa.type = RSA_PRIVATE;
if (mp_read_unsigned_bin(&this->rsa.n, n.ptr, n.len) != 0)
{
goto error;