mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
fixed signedness warning
This commit is contained in:
@@ -32,7 +32,7 @@ unsigned char *pcp_derivekey(char *passphrase) {
|
||||
int i;
|
||||
|
||||
// make a hash from the passphrase and then HCYCLES times from the result
|
||||
crypto_hash_sha256(temp, passphrase, plen);
|
||||
crypto_hash_sha256(temp, (unsigned char*)passphrase, plen);
|
||||
|
||||
for(i=0; i<HCYCLES; ++i) {
|
||||
if(crypto_hash_sha256(hash32, temp, crypto_hash_sha256_BYTES) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user