/external/dropbear/libtomcrypt/src/prngs/ |
H A D | rng_make_prng.c | 21 @param wprng Index of which PRNG to setup 26 int rng_make_prng(int bits, int wprng, prng_state *prng, argument 35 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 43 if ((err = prng_descriptor[wprng].start(prng)) != CRYPT_OK) { 52 if ((err = prng_descriptor[wprng].add_entropy(buf, (unsigned long)bits, prng)) != CRYPT_OK) { 56 if ((err = prng_descriptor[wprng].ready(prng)) != CRYPT_OK) {
|
/external/dropbear/libtomcrypt/src/math/ |
H A D | rand_prime.c | 20 int rand_prime(void *N, long len, prng_state *prng, int wprng) argument 41 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 53 if (prng_descriptor[wprng].read(buf, len, prng) != (unsigned long)len) {
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ecc_make_key.c | 29 @param wprng The index of the PRNG you wish to use 34 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key) argument 45 err = ecc_make_key_ex(prng, wprng, key, <c_ecc_sets[x]); 50 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_set_type *dp) argument 63 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 79 if (prng_descriptor[wprng].read(buf, (unsigned long)keysize, prng) != (unsigned long)keysize) {
|
H A D | ecc_sign_hash.c | 33 @param wprng The index of the PRNG you wish to use 39 prng_state *prng, int wprng, ecc_key *key) 60 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 74 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { 37 ecc_sign_hash(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, prng_state *prng, int wprng, ecc_key *key) argument
|
H A D | ecc_encrypt_key.c | 33 @param wprng The index of the PRNG you wish to use 40 prng_state *prng, int wprng, int hash, 53 /* check that wprng/cipher/hash are not invalid */ 54 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 67 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) { 38 ecc_encrypt_key(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, prng_state *prng, int wprng, int hash, ecc_key *key) argument
|
/external/dropbear/libtomcrypt/src/pk/katja/ |
H A D | katja_make_key.c | 23 @param wprng The index of the PRNG desired 28 int katja_make_key(prng_state *prng, int wprng, int size, katja_key *key) argument 40 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 52 if ((err = rand_prime(q, -size, prng, wprng)) != CRYPT_OK) { goto done; } 57 if ((err = rand_prime(p, size+1, prng, wprng)) != CRYPT_OK) { goto done; }
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
H A D | dsa_make_key.c | 23 @param wprng The index of the PRNG desired 29 int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key) argument 39 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 62 if ((err = rand_prime(key->q, group_size, prng, wprng)) != CRYPT_OK) { goto error; } 68 if (prng_descriptor[wprng].read(buf+1, modulus_size - group_size, prng) != (unsigned long)(modulus_size - group_size)) { 108 if (prng_descriptor[wprng].read(buf, group_size, prng) != (unsigned long)group_size) {
|
H A D | dsa_sign_hash.c | 27 @param wprng The index of the PRNG desired 33 prng_state *prng, int wprng, dsa_key *key) 44 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 68 if (prng_descriptor[wprng].read(buf, key->qord, prng) != (unsigned long)key->qord) { 118 @param wprng The index of the PRNG desired 124 prng_state *prng, int wprng, dsa_key *key) 138 if ((err = dsa_sign_hash_raw(in, inlen, r, s, prng, wprng, key)) != CRYPT_OK) { 31 dsa_sign_hash_raw(const unsigned char *in, unsigned long inlen, void *r, void *s, prng_state *prng, int wprng, dsa_key *key) argument 122 dsa_sign_hash(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, prng_state *prng, int wprng, dsa_key *key) argument
|
H A D | dsa_encrypt_key.c | 27 @param wprng The index of the PRNG you wish to use 34 prng_state *prng, int wprng, int hash, 47 /* check that wprng/cipher/hash are not invalid */ 48 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 80 if (prng_descriptor[wprng].read(expt, x, prng) != x) { 32 dsa_encrypt_key(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, prng_state *prng, int wprng, int hash, dsa_key *key) argument
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
H A D | rsa_make_key.c | 23 @param wprng The index of the PRNG desired 29 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key) argument 45 if ((err = prng_is_valid(wprng)) != CRYPT_OK) { 58 if ((err = rand_prime( p, size/2, prng, wprng)) != CRYPT_OK) { goto errkey; } 65 if ((err = rand_prime( q, size/2, prng, wprng)) != CRYPT_OK) { goto errkey; }
|
/external/dropbear/libtomcrypt/src/headers/ |
H A D | tomcrypt_pk.h | 8 int rand_prime(void *N, long len, prng_state *prng, int wprng); 39 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key); 120 int katja_make_key(prng_state *prng, int wprng, int size, katja_key *key); 216 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key); 217 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_set_type *dp); 233 prng_state *prng, int wprng, int hash, 242 prng_state *prng, int wprng, ecc_key *key); 325 int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key); 330 prng_state *prng, int wprng, dsa_key *key); 334 prng_state *prng, int wprng, dsa_ke [all...] |
H A D | tomcrypt_prng.h | 194 int rng_make_prng(int bits, int wprng, prng_state *prng, void (*callback)(void));
|
H A D | tomcrypt_math.h | 398 @param wprng The index of the PRNG desired 404 int (*rsa_keygen)(prng_state *prng, int wprng, int size, long e, rsa_key *key);
|
/external/dropbear/libtomcrypt/ |
H A D | crypt.tex | 2982 int wprng, 3259 int wprng, 3265 Where \textit{wprng} is the index into the PRNG descriptor array. The \textit{size} parameter is the size in bytes of the RSA modulus desired. 3731 int wprng, 3749 int wprng, 3862 int wprng, 3916 int wprng, 3999 int wprng, 4004 The variable \textit{prng} is an active PRNG state and \textit{wprng} the index to the descriptor. \textit{group\_size} and 4082 int wprng, [all...] |