mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
more debuggin...2
This commit is contained in:
@@ -822,9 +822,7 @@ pcp_key_t *pcp_import_secret_native(PCPCTX *ptx, Buffer *cipher, char *passphras
|
|||||||
if(buffer_get_chunk(cipher, nonce, crypto_secretbox_NONCEBYTES) == 0)
|
if(buffer_get_chunk(cipher, nonce, crypto_secretbox_NONCEBYTES) == 0)
|
||||||
goto impserr1;
|
goto impserr1;
|
||||||
|
|
||||||
fprintf(stderr, "import\n");
|
|
||||||
symkey = pcp_scrypt(ptx, passphrase, strlen(passphrase), nonce, crypto_secretbox_NONCEBYTES);
|
symkey = pcp_scrypt(ptx, passphrase, strlen(passphrase), nonce, crypto_secretbox_NONCEBYTES);
|
||||||
fprintf(stderr, "import done\n");
|
|
||||||
|
|
||||||
cipherlen = buffer_left(cipher);
|
cipherlen = buffer_left(cipher);
|
||||||
if(cipherlen < minlen) {
|
if(cipherlen < minlen) {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ byte* pcp_scrypt(PCPCTX *ptx, char *passwd, size_t passwdlen, byte *nonce, size_
|
|||||||
_dump("nonce", nonce, noncelen);
|
_dump("nonce", nonce, noncelen);
|
||||||
_dump(" pass", (byte*)passwd, passwdlen);
|
_dump(" pass", (byte*)passwd, passwdlen);
|
||||||
_dump(" dk", dk, 64);
|
_dump(" dk", dk, 64);
|
||||||
|
fprintf(stderr, "N: %ld, r: %d, p: %d\n", N, r, p);
|
||||||
return dk;
|
return dk;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user