/hostap-latest/src/crypto/ |
D | crypto_internal-rsa.c | 73 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument 77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15() 82 const u8 *in, size_t inlen, in crypto_private_key_decrypt_pkcs1_v15() argument 86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15() 91 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument 95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
|
D | sha256-internal.c | 146 unsigned long inlen) in sha256_process() argument 153 while (inlen > 0) { in sha256_process() 154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 159 inlen -= SHA256_BLOCK_SIZE; in sha256_process() 161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 165 inlen -= n; in sha256_process()
|
D | sha512-internal.c | 184 unsigned long inlen) in sha512_process() argument 191 while (inlen > 0) { in sha512_process() 192 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process() 197 inlen -= SHA512_BLOCK_SIZE; in sha512_process() 199 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process() 203 inlen -= n; in sha512_process()
|
D | crypto_libtomcrypt.c | 491 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument 507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 512 (unsigned long) inlen); in pkcs1_generate_encryption_block() 519 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block() 547 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block() 554 const u8 *in, size_t inlen, in crypto_rsa_encrypt_pkcs1() argument 562 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1() 580 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument 583 return crypto_rsa_encrypt_pkcs1(2, &key->rsa, PK_PUBLIC, in, inlen, in crypto_public_key_encrypt_pkcs1_v15() 589 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument [all …]
|
D | sha384-internal.c | 67 unsigned long inlen) in sha384_process() argument 69 return sha512_process(md, in, inlen); in sha384_process()
|
D | sha384_i.h | 20 unsigned long inlen);
|
D | sha256_i.h | 22 unsigned long inlen);
|
D | sha512_i.h | 22 unsigned long inlen);
|
D | crypto.h | 352 struct crypto_public_key *key, const u8 *in, size_t inlen, 369 struct crypto_private_key *key, const u8 *in, size_t inlen, 386 const u8 *in, size_t inlen,
|
/hostap-latest/src/tls/ |
D | pkcs1.c | 19 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument 35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 40 (unsigned long) inlen); in pkcs1_generate_encryption_block() 47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block() 75 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block() 82 int use_private, const u8 *in, size_t inlen, in pkcs1_encrypt() argument 89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt() 98 const u8 *in, size_t inlen, in pkcs1_v15_private_key_decrypt() argument 104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt()
|
D | pkcs1.h | 16 int use_private, const u8 *in, size_t inlen, 19 const u8 *in, size_t inlen,
|
D | rsa.h | 22 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
|
D | rsa.c | 256 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen, in crypto_rsa_exptmod() argument 270 if (bignum_set_unsigned_bin(tmp, in, inlen) < 0) in crypto_rsa_exptmod()
|