aboutsummaryrefslogtreecommitdiff
path: root/rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rsa.c b/rsa.c
index 8ea5f74..9fe2c47 100644
--- a/rsa.c
+++ b/rsa.c
@@ -748,6 +748,8 @@ hal_error_t hal_rsa_key_from_der(hal_rsa_key_t *key_,
if (fp_cmp_d(&version, 0) != FP_EQ)
return HAL_ERROR_ASN1_PARSE_FAILED;
+ key_->key = key;
+
return HAL_OK;
}