Home | History | Annotate | Download | only in crypto

Lines Matching full:modlen

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;
639 modlen = crypto_rsa_get_modulus_len(key);
641 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
645 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private);