more debuggin...2

This commit is contained in:
TLINDEN
2015-04-17 13:32:48 +02:00
parent 8c024afad9
commit 177ad8a8f2
2 changed files with 1 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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 {