Skip to content

Commit

Permalink
fix ctrlSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 25, 2024
1 parent 3180102 commit 462321d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hkdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newHKDF1(md C.GO_EVP_MD_PTR, mode C.int, secret, salt, pseudorandomKey, inf
if len(data) == 0 {
return 1 // No data to set.
}
return C.go_openssl_EVP_PKEY_CTX_ctrl(ctx, -1, C.GO1_EVP_PKEY_OP_DERIVE, C.int(ctrl), C.int(len(salt)), unsafe.Pointer(base(data)))
return C.go_openssl_EVP_PKEY_CTX_ctrl(ctx, -1, C.GO1_EVP_PKEY_OP_DERIVE, C.int(ctrl), C.int(len(data)), unsafe.Pointer(base(data)))
}

if C.go_openssl_EVP_PKEY_CTX_ctrl(ctx, -1, C.GO1_EVP_PKEY_OP_DERIVE, C.GO_EVP_PKEY_CTRL_HKDF_MODE, mode, nil) != 1 {
Expand Down

0 comments on commit 462321d

Please sign in to comment.