Skip to content

Commit 7728cf8

Browse files
committed
Fix privSz for wp_dh_get_params
1 parent 73aa5bf commit 7728cf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp_dh_kmgmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ static int wp_dh_get_params(wp_Dh* dh, OSSL_PARAM params[])
807807
p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_PRIV_KEY);
808808
if (p != NULL) {
809809
if (p->data == NULL) {
810-
p->return_size = dh->pubSz;
810+
p->return_size = dh->privSz;
811811
}
812812
else if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
813813
if (p->data_size < dh->privSz) {

0 commit comments

Comments
 (0)