/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_prng.h | 72 } prng_state; typedef 84 int (*start)(prng_state *prng); 96 int (*ready)(prng_state *prng); 108 int (*done)(prng_state *prng); 130 int yarrow_start(prng_state *prng); 134 int yarrow_done(prng_state *prng); 156 int rc4_start(prng_state *prng); 158 int rc4_ready(prng_state *prng); 160 int rc4_done(prng_state *prng); 180 int sprng_start(prng_state *prng); [all …]
|
A D | tomcrypt_pkcs.h | 35 prng_state *prng, 51 unsigned long modulus_bitlen, prng_state *prng, 62 unsigned long saltlen, prng_state *prng,
|
A D | tomcrypt_pk.h | 20 int rand_prime(void *N, long len, prng_state *prng, int wprng); 47 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key); 48 int rsa_make_key_ubin_e(prng_state *prng, int wprng, int size, 91 prng_state *prng, int prng_idx, 147 int dh_generate_key(prng_state *prng, int wprng, dh_key *key); 262 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key); 289 prng_state *prng, int wprng, int hash, 345 int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key); 385 int x25519_make_key(prng_state *prng, int wprng, curve25519_key *key); 449 int dsa_generate_key(prng_state *prng, int wprng, dsa_key *key); [all …]
|
A D | tomcrypt_private.h | 258 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng); 259 int rand_bn_upto(void *N, void *limit, prng_state *prng, int wprng); 269 int rsa_make_key_bn_e(prng_state *prng, int wprng, int size, void *e, 373 int tweetnacl_crypto_sign_keypair(prng_state *prng, int wprng, unsigned char *pk,unsigned char *sk); 474 int which ## _export(unsigned char *out, unsigned long *outlen, prng_state *prng) \
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/ |
A D | sprng.c | 35 int sprng_start(prng_state *prng) in sprng_start() 48 int sprng_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in sprng_add_entropy() 61 int sprng_ready(prng_state *prng) in sprng_ready() 74 unsigned long sprng_read(unsigned char *out, unsigned long outlen, prng_state *prng) in sprng_read() 86 int sprng_done(prng_state *prng) in sprng_done() 100 int sprng_export(unsigned char *out, unsigned long *outlen, prng_state *prng) in sprng_export() 117 int sprng_import(const unsigned char *in, unsigned long inlen, prng_state *prng) in sprng_import() 134 prng_state st; in sprng_test()
|
A D | chacha20.c | 31 int chacha20_prng_start(prng_state *prng) in chacha20_prng_start() 48 int chacha20_prng_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in chacha20_prng_add_entropy() 85 int chacha20_prng_ready(prng_state *prng) in chacha20_prng_ready() 112 unsigned long chacha20_prng_read(unsigned char *out, unsigned long outlen, prng_state *prng) in chacha20_prng_read() 128 int chacha20_prng_done(prng_state *prng) in chacha20_prng_done() 156 int chacha20_prng_import(const unsigned char *in, unsigned long inlen, prng_state *prng) in LTC_PRNG_EXPORT() 178 prng_state st; in chacha20_prng_test()
|
A D | sober128.c | 33 int sober128_start(prng_state *prng) in sober128_start() 50 int sober128_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in sober128_add_entropy() 87 int sober128_ready(prng_state *prng) in sober128_ready() 114 unsigned long sober128_read(unsigned char *out, unsigned long outlen, prng_state *prng) in sober128_read() 130 int sober128_done(prng_state *prng) in sober128_done() 158 int sober128_import(const unsigned char *in, unsigned long inlen, prng_state *prng) in LTC_PRNG_EXPORT() 180 prng_state st; in sober128_test()
|
A D | rc4.c | 31 int rc4_start(prng_state *prng) in rc4_start() 50 int rc4_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in rc4_add_entropy() 86 int rc4_ready(prng_state *prng) in rc4_ready() 115 unsigned long rc4_read(unsigned char *out, unsigned long outlen, prng_state *prng) in rc4_read() 131 int rc4_done(prng_state *prng) in rc4_done() 159 int rc4_import(const unsigned char *in, unsigned long inlen, prng_state *prng) in LTC_PRNG_EXPORT() 181 prng_state st; in rc4_test()
|
A D | fortuna.c | 56 static void s_fortuna_update_iv(prng_state *prng) in s_fortuna_update_iv() 96 static int s_fortuna_reseed(prng_state *prng) in s_fortuna_reseed() 180 int fortuna_update_seed(const unsigned char *in, unsigned long inlen, prng_state *prng) in fortuna_update_seed() 217 int fortuna_start(prng_state *prng) in fortuna_start() 252 …ed long source, unsigned long pool, const unsigned char *in, unsigned long inlen, prng_state *prng) in s_fortuna_add() 287 …ed long source, unsigned long pool, const unsigned char *in, unsigned long inlen, prng_state *prng) in fortuna_add_random_event() 313 int fortuna_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in fortuna_add_entropy() 340 int fortuna_ready(prng_state *prng) in fortuna_ready() 367 unsigned long fortuna_read(unsigned char *out, unsigned long outlen, prng_state *prng) in fortuna_read() 435 int fortuna_done(prng_state *prng) in fortuna_done() [all …]
|
A D | yarrow.c | 30 int yarrow_start(prng_state *prng) in yarrow_start() 128 int yarrow_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) in yarrow_add_entropy() 172 int yarrow_ready(prng_state *prng) in yarrow_ready() 216 unsigned long yarrow_read(unsigned char *out, unsigned long outlen, prng_state *prng) in yarrow_read() 245 int yarrow_done(prng_state *prng) in yarrow_done() 279 int yarrow_import(const unsigned char *in, unsigned long inlen, prng_state *prng) in LTC_PRNG_EXPORT() 302 prng_state prng; in yarrow_test()
|
A D | rng_make_prng.c | 24 int rng_make_prng(int bits, int wprng, prng_state *prng, in rng_make_prng()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | tomcrypt.c | 21 static int prng_crypto_start(prng_state *prng __unused) in prng_crypto_start() 28 prng_state *prng __unused) in prng_crypto_add_entropy() 34 static int prng_crypto_ready(prng_state *prng __unused) in prng_crypto_ready() 40 prng_state *prng __unused) in prng_crypto_read() 48 static int prng_crypto_done(prng_state *prng __unused) in prng_crypto_done() 55 prng_state *prng __unused) in prng_crypto_export() 62 prng_state *prng __unused) in prng_crypto_import()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_make_key.c | 21 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key) in ecc_make_key() 30 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu) in ecc_make_key_ex() 38 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key) in ecc_generate_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/ |
A D | rand_bn.c | 10 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng) in rand_bn_bits() 50 int rand_bn_upto(void *N, void *limit, prng_state *prng, int wprng) in rand_bn_upto()
|
A D | rand_prime.c | 14 int rand_prime(void *N, long len, prng_state *prng, int wprng) in rand_prime()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_make_key.c | 12 static int s_rsa_make_key(prng_state *prng, int wprng, int size, void *e, rsa_key *key) in s_rsa_make_key() 92 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key) in rsa_make_key() 123 int rsa_make_key_ubin_e(prng_state *prng, int wprng, int size, in rsa_make_key_ubin_e() 150 int rsa_make_key_bn_e(prng_state *prng, int wprng, int size, void *e, rsa_key *key) in rsa_make_key_bn_e()
|
A D | rsa_encrypt_key.c | 30 prng_state *prng, int prng_idx, in rsa_encrypt_key_ex()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_make_key.c | 21 int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key) in dsa_make_key()
|
A D | dsa_generate_key.c | 19 int dsa_generate_key(prng_state *prng, int wprng, dsa_key *key) in dsa_generate_key()
|
A D | dsa_sign_hash.c | 25 prng_state *prng, int wprng, const dsa_key *key) in dsa_sign_hash_raw() 114 prng_state *prng, int wprng, const dsa_key *key) in dsa_sign_hash()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/ |
A D | ed25519_make_key.c | 19 int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key) in ed25519_make_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/x25519/ |
A D | x25519_make_key.c | 19 int x25519_make_key(prng_state *prng, int wprng, curve25519_key *key) in x25519_make_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/ |
A D | pkcs_1_v1_5_encode.c | 29 prng_state *prng, in pkcs_1_v1_5_encode()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_generate_key.c | 37 int dh_generate_key(prng_state *prng, int wprng, dh_key *key) in dh_generate_key()
|
A D | dh_make_key.c | 49 int dh_make_key(prng_state *prng, int wprng, void *q, int xbits, dh_key *key) in dh_make_key()
|