Searched refs:fortuna (Results 1 – 3 of 3) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/prngs/ |
A D | fortuna.c | 68 IV = prng->u.fortuna.IV; in _fortuna_update_iv() 156 if ((err = rijndael_setup(prng->u.fortuna.K, 32, 0, &prng->u.fortuna.skey)) != CRYPT_OK) { in _fortuna_reseed() 162 prng->u.fortuna.pool0_len = 0; in _fortuna_reseed() 241 prng->u.fortuna.pool_idx = prng->u.fortuna.pool0_len = prng->u.fortuna.wd = 0; in fortuna_start() 246 if ((err = rijndael_setup(prng->u.fortuna.K, 32, 0, &prng->u.fortuna.skey)) != CRYPT_OK) { in fortuna_start() 405 rijndael_ecb_encrypt(prng->u.fortuna.IV, out, &prng->u.fortuna.skey); in fortuna_read() 413 rijndael_ecb_encrypt(prng->u.fortuna.IV, tmp, &prng->u.fortuna.skey); in fortuna_read() 419 rijndael_ecb_encrypt(prng->u.fortuna.IV, prng->u.fortuna.K , &prng->u.fortuna.skey); in fortuna_read() 422 rijndael_ecb_encrypt(prng->u.fortuna.IV, prng->u.fortuna.K+16, &prng->u.fortuna.skey); in fortuna_read() 425 if (rijndael_setup(prng->u.fortuna.K, 32, 0, &prng->u.fortuna.skey) != CRYPT_OK) { in fortuna_read() [all …]
|
A D | sub.mk | 7 srcs-$(_CFG_CORE_LTC_FORTUNA_PRNG) += fortuna.c
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_prng.h | 71 struct fortuna_prng fortuna; member
|
Completed in 4 milliseconds