pike.git
/
src
/
post_modules
/
Nettle
/
hash.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hash.cmod:276:
int a, b, c; if (!rounds) rounds = 5000; if (rounds < 1000) rounds = 1000; if (rounds > 999999999) rounds = 999999999; NO_WIDE_STRING(password); NO_WIDE_STRING(salt);
+
password->flags |= STRING_CLEAR_ON_EXIT;
+
ctx = (void *)alloca(meta->context_size); if (!ctx) SIMPLE_OUT_OF_MEMORY_ERROR("crypt_hash", meta->context_size); abcbuf = (uint8_t *)alloca(meta->digest_size * 3); if (!abcbuf) SIMPLE_OUT_OF_MEMORY_ERROR("crypt_hash", meta->digest_size * 3); dpbuf = abcbuf + meta->digest_size; dsbuf = dpbuf + meta->digest_size;