Skip to content

Commit

Permalink
pwhash: use uint64_t for opslimit parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
someburner committed Jun 21, 2022
1 parent 9fac31f commit da3232d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwhash.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func PwHashDeterministic(h_len int, passwd string, ctx string, master_key []byte
C.size_t(len(passwd)),
(*C.char)(unsafe.Pointer(&cCtx[0])),
(*C.uint8_t)(&master_key[0]),
C.size_t(opslimit),
C.uint64_t(opslimit),
C.size_t(PwHashDeterministicMemLimit),
C.uint8_t(PwHashDeterministicThreads)))

Expand Down

0 comments on commit da3232d

Please sign in to comment.