Searched refs:crypt_len (Results 1 - 25 of 29) sorted by relevance

12

/external/wpa_supplicant_8/hostapd/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
H A Dpkcs1.c135 const u8 *crypt, size_t crypt_len,
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
134 pkcs1_decrypt_public_key(struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
/external/wpa_supplicant_8/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
H A Dpkcs1.c135 const u8 *crypt, size_t crypt_len,
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
134 pkcs1_decrypt_public_key(struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
H A Dpkcs1.c135 const u8 *crypt, size_t crypt_len,
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
134 pkcs1_decrypt_public_key(struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len,
116 crypt, crypt_len, plain, plain_len);
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Daes-siv.c154 size_t crypt_len; local
162 crypt_len = iv_c_len - AES_BLOCK_SIZE;
169 _len[num_elem] = crypt_len;
172 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len);
177 ret = aes_128_ctr_encrypt(k2, iv, out, crypt_len);
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
244 WPA_PUT_BE64(len_buf + 8, crypt_len * 8);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Daes-ccm.c179 size_t M, const u8 *crypt, size_t crypt_len,
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a);
201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x);
202 aes_ccm_auth(aes, plain, crypt_len, x);
178 aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) argument
H A Daes_wrap.h57 const u8 *crypt, size_t crypt_len,
67 size_t M, const u8 *crypt, size_t crypt_len,
H A Dcrypto.h408 * @crypt_len: Encrypted signature data length
409 * @plain: Buffer for plaintext (at least crypt_len bytes)
414 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len,
116 crypt, crypt_len, plain, plain_len);
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Daes-siv.c154 size_t crypt_len; local
162 crypt_len = iv_c_len - AES_BLOCK_SIZE;
169 _len[num_elem] = crypt_len;
172 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len);
177 ret = aes_128_ctr_encrypt(k2, iv, out, crypt_len);
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
244 WPA_PUT_BE64(len_buf + 8, crypt_len * 8);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Daes-ccm.c179 size_t M, const u8 *crypt, size_t crypt_len,
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a);
201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x);
202 aes_ccm_auth(aes, plain, crypt_len, x);
178 aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) argument
H A Daes_wrap.h57 const u8 *crypt, size_t crypt_len,
67 size_t M, const u8 *crypt, size_t crypt_len,
H A Dcrypto.h408 * @crypt_len: Encrypted signature data length
409 * @plain: Buffer for plaintext (at least crypt_len bytes)
414 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len,
116 crypt, crypt_len, plain, plain_len);
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Daes-siv.c154 size_t crypt_len; local
162 crypt_len = iv_c_len - AES_BLOCK_SIZE;
169 _len[num_elem] = crypt_len;
172 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len);
177 ret = aes_128_ctr_encrypt(k2, iv, out, crypt_len);
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
244 WPA_PUT_BE64(len_buf + 8, crypt_len * 8);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Daes-ccm.c179 size_t M, const u8 *crypt, size_t crypt_len,
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a);
201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x);
202 aes_ccm_auth(aes, plain, crypt_len, x);
178 aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) argument
H A Daes_wrap.h57 const u8 *crypt, size_t crypt_len,
67 size_t M, const u8 *crypt, size_t crypt_len,
H A Dcrypto.h408 * @crypt_len: Encrypted signature data length
409 * @plain: Buffer for plaintext (at least crypt_len bytes)
414 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
/external/wpa_supplicant_8/wpa_supplicant/
H A Dmesh_rsn.c533 size_t crypt_len; local
564 crypt_len = elems_len - (elems->mic - start);
565 if (crypt_len < 2) {
571 crypt = os_zalloc(crypt_len);
578 os_memcpy(crypt, elems->mic, crypt_len);
580 if (aes_siv_decrypt(sta->aek, crypt, crypt_len, 3,

Completed in 182 milliseconds

12