mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
using secure memory where applicable using sodium_malloc or sodium_mlock, where not
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "scrypt.h"
|
||||
|
||||
byte* pcp_scrypt(PCPCTX *ptx, char *passwd, size_t passwdlen, byte *nonce, size_t noncelen) {
|
||||
uint8_t *dk = ucmalloc(64); /* resulting hash */
|
||||
uint8_t *dk = smalloc(64); /* resulting hash */
|
||||
|
||||
/* constants */
|
||||
uint64_t N = 1 << 14;
|
||||
|
||||
Reference in New Issue
Block a user