Home
last modified time | relevance | path

Searched refs:crypt (Results 1 – 21 of 21) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dccmp.c196 u8 *crypt, *pos; in ccmp_encrypt() local
203 crypt = os_malloc(hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt()
204 if (crypt == NULL) in ccmp_encrypt()
207 os_memcpy(crypt, frame, hdrlen); in ccmp_encrypt()
208 hdr = (struct ieee80211_hdr *) crypt; in ccmp_encrypt()
210 pos = crypt + hdrlen; in ccmp_encrypt()
221 ccmp_aad_nonce(hdr, crypt + hdrlen, aad, &aad_len, nonce); in ccmp_encrypt()
228 os_free(crypt); in ccmp_encrypt()
232 wpa_hexdump(MSG_MSGDUMP, "CCMP encrypted", crypt + hdrlen + 8, plen); in ccmp_encrypt()
236 return crypt; in ccmp_encrypt()
[all …]
Dcrypto_internal-cipher.c104 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
110 if (plain != crypt) in crypto_cipher_encrypt()
111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
113 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
127 crypt += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
139 os_memcpy(crypt, ctx->u.des3.cbc, 8); in crypto_cipher_encrypt()
141 crypt += 8; in crypto_cipher_encrypt()
153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt()
155 crypt += 8; in crypto_cipher_encrypt()
[all …]
Ddes_i.h18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
19 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
22 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
23 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
Ddes-internal.c435 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument
441 WPA_PUT_BE32(crypt, work[0]); in des_block_encrypt()
442 WPA_PUT_BE32(crypt + 4, work[1]); in des_block_encrypt()
446 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) in des_block_decrypt() argument
449 work[0] = WPA_GET_BE32(crypt); in des_block_decrypt()
450 work[1] = WPA_GET_BE32(crypt + 4); in des_block_decrypt()
469 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
478 WPA_PUT_BE32(crypt, work[0]); in des3_encrypt()
479 WPA_PUT_BE32(crypt + 4, work[1]); in des3_encrypt()
483 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument
[all …]
Dcrypto_ops.c30 static void esp_aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in esp_aes_encrypt() argument
32 aes_encrypt(ctx, plain, crypt); in esp_aes_encrypt()
35 static void esp_aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in esp_aes_decrypt() argument
37 aes_decrypt(ctx, crypt, plain); in esp_aes_decrypt()
Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument
242 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash()
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt); in aes_gcm_ae()
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
289 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad()
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
Daes.h15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
Daes_wrap.h56 u8 *crypt, u8 *tag);
59 const u8 *crypt, size_t crypt_len,
67 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
69 size_t M, const u8 *crypt, size_t crypt_len,
Daes-ccm.c151 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
169 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); in aes_ccm_ae()
180 size_t M, const u8 *crypt, size_t crypt_len, in aes_ccm_ad() argument
200 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad()
Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument
116 crypt, crypt_len, plain, plain_len); in crypto_public_key_decrypt_pkcs1()
Dcrypto.h129 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
152 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
254 const u8 *plain, u8 *crypt, size_t len);
269 const u8 *crypt, u8 *plain, size_t len);
418 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
Daes-internal-enc.c119 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
122 rijndaelEncrypt(ctx, rk[AES_PRIV_NR_POS], plain, crypt); in aes_encrypt()
Daes-internal-dec.c151 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
154 rijndaelDecrypt(ctx, rk[AES_PRIV_NR_POS], crypt, plain); in aes_decrypt()
/hal_espressif-latest/components/mbedtls/port/aes/
Desp_aes_xts.c45 esp_aes_init( &ctx->crypt ); in esp_aes_xts_init()
51 esp_aes_free( &ctx->crypt ); in esp_aes_xts_free()
100 return esp_aes_setkey( &ctx->crypt, key1, key1bits ); in esp_aes_xts_setkey_enc()
124 return esp_aes_setkey( &ctx->crypt, key1, key1bits ); in esp_aes_xts_setkey_dec()
230 ret = esp_aes_crypt_ecb( &ctx->crypt, mode, tmp, tmp ); in esp_aes_crypt_xts()
271 ret = esp_aes_crypt_ecb( &ctx->crypt, mode, tmp, tmp ); in esp_aes_crypt_xts()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c430 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
432 return aes_crypt(ctx, MBEDTLS_AES_ENCRYPT, plain, crypt); in aes_encrypt()
445 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
447 return aes_crypt(ctx, MBEDTLS_AES_DECRYPT, crypt, plain); in aes_decrypt()
614 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
619 ret = mbedtls_cipher_update(&ctx->ctx_enc, plain, len, crypt, &olen); in crypto_cipher_encrypt()
624 ret = mbedtls_cipher_finish(&ctx->ctx_enc, crypt + olen, &olen); in crypto_cipher_encrypt()
632 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
638 ret = mbedtls_cipher_update(&ctx->ctx_dec, crypt, len, plain, &olen); in crypto_cipher_decrypt()
816 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
[all …]
Dcrypto_mbedtls-rsa.c337 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument
348 if (mbedtls_rsa_public(mbedtls_pk_rsa(*pkey), crypt, plain) < 0) in crypto_public_key_decrypt_pkcs1()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
Dpkcs1.c135 const u8 *crypt, size_t crypt_len, in pkcs1_decrypt_public_key() argument
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0) in pkcs1_decrypt_public_key()
/hal_espressif-latest/components/esp_wifi/include/
Desp_wifi_crypto_types.h270 typedef void (*esp_aes_encrypt_t)(void *ctx, const unsigned char *plain, unsigned char *crypt);
295 typedef void (*esp_aes_decrypt_t)(void *ctx, const unsigned char *crypt, unsigned char *plain);
/hal_espressif-latest/components/mbedtls/port/include/aes/
Desp_aes.h53 esp_aes_context crypt; /*!< The AES context to use for AES block member
/hal_espressif-latest/components/mbedtls/port/mbedtls_rom/
Dmbedtls_rom_osi.h717 STRUCT_OFFSET_CHECK(mbedtls_aes_xts_context, MBEDTLS_PRIVATE(crypt), 0);