Lines Matching defs:modlen
22 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen,
36 * k = length of modulus in octets (modlen)
39 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
41 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
42 __func__, (unsigned long) modlen,
51 ps_len = modlen - inlen - 3;
89 size_t modlen;
91 modlen = crypto_rsa_get_modulus_len(key);
93 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
97 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private);