Home
last modified time | relevance | path

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

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dcrypto_internal-cipher.c27 void *ctx_enc; member
65 ctx->u.aes.ctx_enc = aes_encrypt_init(key, key_len); in crypto_cipher_init()
66 if (ctx->u.aes.ctx_enc == NULL) { in crypto_cipher_init()
72 aes_encrypt_deinit(ctx->u.aes.ctx_enc); in crypto_cipher_init()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
234 aes_encrypt_deinit(ctx->u.aes.ctx_enc); in crypto_cipher_deinit()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c502 mbedtls_cipher_context_t ctx_enc; member
590 if (crypto_init_cipher_ctx(&ctx->ctx_enc, cipher_info, iv, key, in crypto_cipher_init()
600 if (mbedtls_cipher_set_padding_mode(&ctx->ctx_enc, MBEDTLS_PADDING_NONE) < 0) { in crypto_cipher_init()
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()
653 mbedtls_cipher_free(&ctx->ctx_enc); in crypto_cipher_deinit()