Searched refs:modlen (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/wpa_supplicant/src/tls/ |
D | pkcs1.c | 16 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument 33 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 36 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block() 45 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block() 83 size_t modlen; in pkcs1_encrypt() local 85 modlen = crypto_rsa_get_modulus_len(key); in pkcs1_encrypt() 87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt() 91 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt()
|
D | rsa.c | 270 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()
|