Lines Matching refs:modlen
16 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen,
30 * k = length of modulus in octets (modlen)
33 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
35 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
36 __func__, (unsigned long) modlen,
45 ps_len = modlen - inlen - 3;
83 size_t modlen;
85 modlen = crypto_rsa_get_modulus_len(key);
87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
91 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private);