Searched refs:modlen (Results 1 - 8 of 8) sorted by relevance

/external/dropbear/libtomcrypt/testprof/
H A Dpkcs_1_test.c9 unsigned long x, y, l1, l2, l3, i1, i2, lparamlen, saltlen, modlen; local
37 modlen = 800 + (abs(rand()) % 224);
41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1));
45 DO(pkcs_1_oaep_decode(buf[1], l1, lparam, lparamlen, modlen, hash_idx, buf[2], &l2, &res1));
63 DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1));
64 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res1));
67 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res2));
71 pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res3);
/external/wpa_supplicant/
H A Drsa.c254 size_t modlen; local
313 modlen = crypto_rsa_get_modulus_len(key);
314 if (modlen > *outlen) {
315 *outlen = modlen;
319 if (bignum_get_unsigned_bin_len(tmp) > modlen)
322 *outlen = modlen;
323 os_memset(out, 0, modlen);
326 (modlen - bignum_get_unsigned_bin_len(tmp)), NULL) < 0)
H A Dcrypto_internal.c453 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
467 * k = length of modulus in octets (modlen)
470 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
472 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
473 __func__, (unsigned long) modlen,
482 ps_len = modlen - inlen - 3;
521 size_t modlen; local
523 modlen
[all...]
H A Dcrypto_libtomcrypt.c492 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
506 * k = length of modulus in octets (modlen)
509 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
511 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
512 __func__, (unsigned long) modlen,
521 ps_len = modlen - inlen - 3;
559 unsigned long len, modlen; local
562 modlen
[all...]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
H A Drsa.c256 size_t modlen; local
315 modlen = crypto_rsa_get_modulus_len(key);
316 if (modlen > *outlen) {
317 *outlen = modlen;
321 if (bignum_get_unsigned_bin_len(tmp) > modlen)
324 *outlen = modlen;
325 os_memset(out, 0, modlen);
328 (modlen - bignum_get_unsigned_bin_len(tmp)), NULL) < 0)
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
H A Dcrypto_libtomcrypt.c492 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
506 * k = length of modulus in octets (modlen)
509 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
511 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
512 __func__, (unsigned long) modlen,
521 ps_len = modlen - inlen - 3;
559 unsigned long len, modlen; local
562 modlen
[all...]
H A Dcrypto_internal.c569 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
583 * k = length of modulus in octets (modlen)
586 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
588 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
589 __func__, (unsigned long) modlen,
598 ps_len = modlen - inlen - 3;
637 size_t modlen; local
639 modlen
[all...]
/external/dropbear/
H A Dkeyimport.c518 int modlen = -9999; local
639 modlen = len;
643 buf_putstring(blobbuf, modptr, modlen);

Completed in 176 milliseconds