/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | ccmp.c | 196 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 …]
|
D | crypto_internal-cipher.c | 104 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 …]
|
D | des_i.h | 18 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);
|
D | des-internal.c | 435 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 …]
|
D | crypto_ops.c | 30 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()
|
D | aes-gcm.c | 230 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()
|
D | aes.h | 15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
D | aes_wrap.h | 56 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,
|
D | aes-ccm.c | 151 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()
|
D | crypto_internal-rsa.c | 112 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()
|
D | crypto.h | 129 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,
|
D | aes-internal-enc.c | 119 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()
|
D | aes-internal-dec.c | 151 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/ |
D | esp_aes_xts.c | 45 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/ |
D | crypto_mbedtls.c | 430 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 …]
|
D | crypto_mbedtls-rsa.c | 337 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/ |
D | pkcs1.h | 22 const u8 *crypt, size_t crypt_len,
|
D | pkcs1.c | 135 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/ |
D | esp_wifi_crypto_types.h | 270 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/ |
D | esp_aes.h | 53 esp_aes_context crypt; /*!< The AES context to use for AES block member
|
/hal_espressif-latest/components/mbedtls/port/mbedtls_rom/ |
D | mbedtls_rom_osi.h | 717 STRUCT_OFFSET_CHECK(mbedtls_aes_xts_context, MBEDTLS_PRIVATE(crypt), 0);
|