Skip to content

Commit 0d53781

Browse files
committed
Add get private key handling for DH
1 parent ddcae30 commit 0d53781

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wp_dh_kmgmt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,10 @@ static int wp_dh_get_params(wp_Dh* dh, OSSL_PARAM params[])
749749
dh->pub, dh->pubSz))) {
750750
ok = 0;
751751
}
752+
if (ok && (!wp_params_set_octet_string_be(params, OSSL_PKEY_PARAM_PRIV_KEY,
753+
dh->priv, dh->privSz))) {
754+
ok = 0;
755+
}
752756
if (ok && (!wp_dh_get_params_encoded_public_key(dh, params))) {
753757
ok = 0;
754758
}

0 commit comments

Comments
 (0)