Home
last modified time | relevance | path

Searched refs:modlen (Results 1 – 5 of 5) sorted by relevance

/external/wpa_supplicant_8/src/tls/
Dpkcs1.c18 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
38 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
85 size_t modlen; in pkcs1_encrypt() local
87 modlen = crypto_rsa_get_modulus_len(key); in pkcs1_encrypt()
89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt()
93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt()
Drsa.c270 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()
/external/kmod/libkmod/
Dlibkmod-builtin.c172 off_t pos, offset, modlen; in kmod_builtin_iter_next() local
202 modlen = len; in kmod_builtin_iter_next()
203 } else if (modlen != len || strncmp(modname, line, len)) { in kmod_builtin_iter_next()
269 size_t i, n, linesz, modlen, size; in kmod_builtin_get_modinfo() local
297 modlen = strlen(modname) + 1; in kmod_builtin_get_modinfo()
299 size = iter->next - iter->pos - (modlen * count); in kmod_builtin_get_modinfo()
321 strcpy(s + i, line + modlen); in kmod_builtin_get_modinfo()
323 i += linesz - modlen; in kmod_builtin_get_modinfo()
/external/openssh/
Dssh-rsa.c254 size_t len = 0, diff, modlen, dlen; in ssh_rsa_verify() local
299 modlen = RSA_size(key->rsa); in ssh_rsa_verify()
300 if (len > modlen) { in ssh_rsa_verify()
303 } else if (len < modlen) { in ssh_rsa_verify()
304 diff = modlen - len; in ssh_rsa_verify()
306 if ((sigblob = realloc(sigblob, modlen)) == NULL) { in ssh_rsa_verify()
313 len = modlen; in ssh_rsa_verify()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_libtomcrypt.c490 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, in pkcs1_generate_encryption_block() argument
507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
510 __func__, (unsigned long) modlen, in pkcs1_generate_encryption_block()
519 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
557 unsigned long len, modlen; in crypto_rsa_encrypt_pkcs1() local
560 modlen = mp_unsigned_bin_size(key->N); in crypto_rsa_encrypt_pkcs1()
562 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1()
567 res = rsa_exptmod(out, modlen, out, &len, key_type, key); in crypto_rsa_encrypt_pkcs1()