Skip to content

Commit

Permalink
fix shakeOneShot
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 8, 2025
1 parent 5e3d1cc commit 369bd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func shakeOneShot(secuirtyBits int, data []byte, out []byte) {
if C.go_openssl_EVP_DigestUpdate(ctx, unsafe.Pointer(&*addr(data)), C.size_t(len(data))) != 1 {
panic(newOpenSSLError("EVP_DigestUpdate"))
}
if C.go_openssl_EVP_DigestFinalXOF(ctx, (*C.uchar)(unsafe.Pointer(&*addr(out))), C.size_t(len(out))) != 0 {
if C.go_openssl_EVP_DigestFinalXOF(ctx, (*C.uchar)(unsafe.Pointer(&*addr(out))), C.size_t(len(out))) != 1 {
panic(newOpenSSLError("EVP_DigestFinalXOF"))
}
}
Expand Down

0 comments on commit 369bd5d

Please sign in to comment.