Home | History | Annotate | Download | only in crypto

Lines Matching refs:modlen

486 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen,
500 * k = length of modulus in octets (modlen)
503 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
505 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
506 __func__, (unsigned long) modlen,
515 ps_len = modlen - inlen - 3;
553 unsigned long len, modlen;
556 modlen = mp_unsigned_bin_size(key->N);
558 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
563 res = rsa_exptmod(out, modlen, out, &len, key_type, key);