Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dpkcs1.c18 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
38 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
85 size_t modlen; in pkcs1_encrypt() local
87 modlen = crypto_rsa_get_modulus_len(key); in pkcs1_encrypt()
89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt()
93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt()
Drsa.c261 size_t modlen; in crypto_rsa_exptmod() local
320 modlen = crypto_rsa_get_modulus_len(key); in crypto_rsa_exptmod()
321 if (modlen > *outlen) { in crypto_rsa_exptmod()
322 *outlen = modlen; in crypto_rsa_exptmod()
326 if (bignum_get_unsigned_bin_len(tmp) > modlen) in crypto_rsa_exptmod()
329 *outlen = modlen; in crypto_rsa_exptmod()
330 os_memset(out, 0, modlen); in crypto_rsa_exptmod()
333 (modlen - bignum_get_unsigned_bin_len(tmp)), NULL) < 0) in crypto_rsa_exptmod()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dpkcs1.c18 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
38 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
85 size_t modlen; in pkcs1_encrypt() local
87 modlen = crypto_rsa_get_modulus_len(key); in pkcs1_encrypt()
89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt()
93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt()
Drsa.c270 size_t modlen; in crypto_rsa_exptmod() local
329 modlen = crypto_rsa_get_modulus_len(key); in crypto_rsa_exptmod()
330 if (modlen > *outlen) { in crypto_rsa_exptmod()
331 *outlen = modlen; in crypto_rsa_exptmod()
335 if (bignum_get_unsigned_bin_len(tmp) > modlen) in crypto_rsa_exptmod()
338 *outlen = modlen; in crypto_rsa_exptmod()
339 os_memset(out, 0, modlen); in crypto_rsa_exptmod()
342 (modlen - bignum_get_unsigned_bin_len(tmp)), NULL) < 0) in crypto_rsa_exptmod()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_libtomcrypt.c490 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
510 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
519 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
557 unsigned long len, modlen; in crypto_rsa_encrypt_pkcs1() local
560 modlen = mp_unsigned_bin_size(key->N); in crypto_rsa_encrypt_pkcs1()
562 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1()
567 res = rsa_exptmod(out, modlen, out, &len, key_type, key); in crypto_rsa_encrypt_pkcs1()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_libtomcrypt.c490 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
510 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
519 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
557 unsigned long len, modlen; in crypto_rsa_encrypt_pkcs1() local
560 modlen = mp_unsigned_bin_size(key->N); in crypto_rsa_encrypt_pkcs1()
562 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1()
567 res = rsa_exptmod(out, modlen, out, &len, key_type, key); in crypto_rsa_encrypt_pkcs1()
/third_party/musl/src/locale/
Ddcngettext.c152 size_t dirlen, loclen, catlen, modlen, alt_modlen; in dcngettext() local
167 alt_modlen = modlen = loclen - (modname-locname); in dcngettext()
174 char name[dirlen+1 + loclen+modlen+1 + catlen+1 + domlen+3 + 1]; in dcngettext()
188 alt_modlen = modlen; in dcngettext()
/third_party/musl/porting/linux/user/src/locale/
Ddcngettext.c195 size_t dirlen, loclen, catlen, modlen, alt_modlen; in dcngettext() local
212 alt_modlen = modlen = loclen - (modname-locname); in dcngettext()
221 char name[dirlen+1 + loclen+modlen+1 + catlen+1 + domlen+3 + 1]; in dcngettext()
237 alt_modlen = modlen; in dcngettext()