pike.git
/
src
/
post_modules
/
Nettle
/
nettle.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/nettle.cmod:263:
CVAR uint8_t *key; CVAR uint8_t *ctr; CVAR uint8_t *data; DECLARE_STORAGE; #ifndef AES256_KEY_SIZE #define AES256_KEY_SIZE (256>>3) #endif
-
static void fortuna_generate()
+
static void fortuna_generate(
void
)
{ aes_encrypt(&THIS->aes_ctx, 16, THIS->data, THIS->ctr); INCREMENT(16, THIS->ctr); }
-
static void fortuna_rekey()
+
static void fortuna_rekey(
void
)
{ fortuna_generate(); MEMCPY(THIS->key, THIS->data, 16); fortuna_generate(); MEMCPY(THIS->key+16, THIS->data, 16); aes_set_encrypt_key(&THIS->aes_ctx, AES256_KEY_SIZE, THIS->key); } /*! @decl void reseed(string(8bit) data) *! Generates new a new key based on the provided additional