HomeSort by relevance Sort by last modified time
    Searched refs:prng_idx (Results 1 - 12 of 12) sorted by null

  /external/dropbear/libtomcrypt/src/pk/katja/
katja_encrypt_key.c 29 @param prng_idx The index of the desired prng
37 prng_state *prng, int prng_idx, int hash_idx, katja_key *key)
48 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) {
74 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx,
  /external/dropbear/libtomcrypt/src/pk/pkcs1/
pkcs_1_v1_5_encode.c 27 * \param prng_idx The index of the PRNG desired (only for LTC_PKCS_1_EME)
38 int prng_idx,
53 if ((result = prng_is_valid(prng_idx)) != CRYPT_OK) {
77 if (prng_descriptor[prng_idx].read(ps, ps_len, prng) != ps_len) {
85 if (prng_descriptor[prng_idx].read(&ps[i], 1, prng) != 1) {
pkcs_1_oaep_encode.c 28 @param prng_idx The index of the PRNG desired
37 int prng_idx, int hash_idx,
54 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) {
111 if (prng_descriptor[prng_idx].read(seed, hLen, prng) != hLen) {
pkcs_1_pss_encode.c 26 @param prng_idx The index of the PRNG desired
35 int prng_idx, int hash_idx,
52 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) {
88 if (prng_descriptor[prng_idx].read(salt, saltlen, prng) != saltlen) {
  /external/dropbear/libtomcrypt/src/pk/rsa/
rsa_encrypt_key.c 29 @param prng_idx The index of the desired prng
38 prng_state *prng, int prng_idx, int hash_idx, int padding, rsa_key *key)
55 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) {
80 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx,
88 modulus_bitlen, prng, prng_idx,
rsa_sign_hash.c 28 @param prng_idx The index of the PRNG desired
37 prng_state *prng, int prng_idx,
56 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) {
77 if ((err = pkcs_1_pss_encode(in, inlen, saltlen, prng, prng_idx,
  /external/dropbear/libtomcrypt/src/headers/
tomcrypt_pkcs.h 32 int prng_idx,
48 int prng_idx, int hash_idx,
59 int prng_idx, int hash_idx,
tomcrypt_pk.h 64 prng_state *prng, int prng_idx, int hash_idx, int padding, rsa_key *key);
75 prng_state *prng, int prng_idx,
132 prng_state *prng, int prng_idx, int hash_idx, katja_key *key);
  /external/dropbear/libtomcrypt/testprof/
pkcs_1_test.c 8 int res1, res2, res3, prng_idx, hash_idx, err; local
14 prng_idx = find_prng("yarrow");
16 if (hash_idx == -1 || prng_idx == -1) {
41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1));
63 DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1));
katja_test.c 9 int hash_idx, prng_idx, stat, stat2, size; local
14 prng_idx = find_prng("yarrow");
15 if (hash_idx == -1 || prng_idx == -1) {
24 DO(katja_make_key(&yarrow_prng, prng_idx, size/8, &key));
69 DO(katja_encrypt_key(in, kat_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key));
114 DO(katja_encrypt_key(in, kat_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key));
141 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key));
199 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
rsa_test.c 129 int hash_idx, prng_idx, stat, stat2; local
138 prng_idx = find_prng("yarrow");
139 if (hash_idx == -1 || prng_idx == -1) {
146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key));
192 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key));
237 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key));
264 DO(rsa_encrypt_key_ex(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, 0, LTC_PKCS_1_V1_5, &key));
280 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key));
338 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
354 DO(rsa_sign_hash_ex(in, 20, out, &len, LTC_PKCS_1_V1_5, &yarrow_prng, prng_idx, hash_idx, 8, &privKey))
    [all...]
  /external/dropbear/libtomcrypt/
crypt.tex     [all...]

Completed in 144 milliseconds