Skip to content

Commit

Permalink
fixed type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Jan 12, 2024
1 parent 773fcc6 commit cae78fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkcs11/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static CK_RV gostr3410_verify_data(const CK_BYTE_PTR pubkey, CK_ULONG pubkey_len
if (!(buf = malloc(buf_len)))
r = -1;
if (r == 1 && P)
r = EC_POINT_point2oct(group, P, POINT_CONVERSION_COMPRESSED, buf, buf_len, NULL);
buf_len = EC_POINT_point2oct(group, P, POINT_CONVERSION_COMPRESSED, buf, buf_len, NULL);

if (EVP_PKEY_todata(pkey, EVP_PKEY_KEYPAIR, &old_params) != 1 ||
!(bld = OSSL_PARAM_BLD_new()) ||
Expand Down

0 comments on commit cae78fd

Please sign in to comment.