/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
DSAKeyPairGeneratorImpl.java | 59 public void initialize(int modlen, boolean genParams, SecureRandom random) 63 if (len == modlen) { 64 lengthModulus = modlen; 69 throw new InvalidParameterException("Incorrect modlen"); 73 if (modlen < 512 || modlen > 1024) { 74 throw new InvalidParameterException("Incorrect modlen");
|
/external/dropbear/libtomcrypt/testprof/ |
pkcs_1_test.c | 9 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);
|
/dalvik/libcore/security/src/main/java/java/security/interfaces/ |
DSAKeyPairGenerator.java | 54 * @param modlen 65 public void initialize(int modlen, boolean genParams, SecureRandom random)
|
/external/wpa_supplicant/ |
rsa.c | 254 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)
|
crypto_internal.c | 453 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, 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 = crypto_rsa_get_modulus_len(key) [all...] |
crypto_libtomcrypt.c | 492 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, 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 = mp_unsigned_bin_size(key->N) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
rsa.c | 256 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/ |
crypto_libtomcrypt.c | 492 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, 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 = mp_unsigned_bin_size(key->N) [all...] |
crypto_internal.c | 569 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, 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 = crypto_rsa_get_modulus_len(key) [all...] |
/external/dropbear/ |
keyimport.c | 518 int modlen = -9999; local 639 modlen = len; 643 buf_putstring(blobbuf, modptr, modlen); [all...] |