Home
last modified time | relevance | path

Searched refs:ctx_dec (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dcrypto_internal-cipher.c28 void *ctx_dec; member
70 ctx->u.aes.ctx_dec = aes_decrypt_init(key, key_len); in crypto_cipher_init()
71 if (ctx->u.aes.ctx_dec == NULL) { in crypto_cipher_init()
186 aes_decrypt(ctx->u.aes.ctx_dec, crypt, plain); in crypto_cipher_decrypt()
235 aes_decrypt_deinit(ctx->u.aes.ctx_dec); in crypto_cipher_deinit()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c503 mbedtls_cipher_context_t ctx_dec; member
595 if (crypto_init_cipher_ctx(&ctx->ctx_dec, cipher_info, iv, key, in crypto_cipher_init()
603 if (mbedtls_cipher_set_padding_mode(&ctx->ctx_dec, MBEDTLS_PADDING_NONE) < 0) { in crypto_cipher_init()
638 ret = mbedtls_cipher_update(&ctx->ctx_dec, crypt, len, plain, &olen); in crypto_cipher_decrypt()
643 ret = mbedtls_cipher_finish(&ctx->ctx_dec, plain + olen, &olen); in crypto_cipher_decrypt()
654 mbedtls_cipher_free(&ctx->ctx_dec); in crypto_cipher_deinit()