Searched refs:ctx_enc (Results 1 – 3 of 3) sorted by relevance
/hostap-3.7.0/src/crypto/ |
D | crypto_internal-cipher.c | 27 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()
|
D | crypto_mbedtls.c | 381 mbedtls_cipher_context_t ctx_enc; member 472 &ctx->ctx_enc, cipher_info, iv, key, MBEDTLS_ENCRYPT) < 0) { in crypto_cipher_init() 494 ret = mbedtls_cipher_update(&ctx->ctx_enc, plain, len, crypt, &olen); in crypto_cipher_encrypt() 499 ret = mbedtls_cipher_finish(&ctx->ctx_enc, crypt + olen, &olen); in crypto_cipher_encrypt() 528 mbedtls_cipher_free(&ctx->ctx_enc); in crypto_cipher_deinit()
|
D | crypto_mbedtls_alt.c | 1028 mbedtls_cipher_context_t ctx_enc; member 1073 mbedtls_cipher_init(&ctx->ctx_enc); in crypto_cipher_init() 1075 if (mbedtls_cipher_setup(&ctx->ctx_enc, cipher_info) == 0 && in crypto_cipher_init() 1077 mbedtls_cipher_setkey(&ctx->ctx_enc, key, key_len, MBEDTLS_ENCRYPT) == 0 && in crypto_cipher_init() 1079 mbedtls_cipher_set_iv(&ctx->ctx_enc, iv, iv_len) == 0 && in crypto_cipher_init() 1080 …mbedtls_cipher_set_iv(&ctx->ctx_dec, iv, iv_len) == 0 && mbedtls_cipher_reset(&ctx->ctx_enc) == 0 … in crypto_cipher_init() 1086 mbedtls_cipher_free(&ctx->ctx_enc); in crypto_cipher_init() 1095 return (mbedtls_cipher_update(&ctx->ctx_enc, plain, len, crypt, &olen) || in crypto_cipher_encrypt() 1096 mbedtls_cipher_finish(&ctx->ctx_enc, crypt + olen, &olen)) ? in crypto_cipher_encrypt() 1112 mbedtls_cipher_free(&ctx->ctx_enc); in crypto_cipher_deinit()
|