Home
last modified time | relevance | path

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

/mbedtls-latest/library/
Dctr_drbg.c36 static psa_status_t ctr_drbg_setup_psa_context(mbedtls_ctr_drbg_psa_context *psa_ctx, in ctr_drbg_setup_psa_context() argument
45 status = psa_import_key(&key_attr, key, key_len, &psa_ctx->key_id); in ctr_drbg_setup_psa_context()
50 status = psa_cipher_encrypt_setup(&psa_ctx->operation, psa_ctx->key_id, PSA_ALG_ECB_NO_PADDING); in ctr_drbg_setup_psa_context()
60 static void ctr_drbg_destroy_psa_contex(mbedtls_ctr_drbg_psa_context *psa_ctx) in ctr_drbg_destroy_psa_contex() argument
62 psa_cipher_abort(&psa_ctx->operation); in ctr_drbg_destroy_psa_contex()
63 psa_destroy_key(psa_ctx->key_id); in ctr_drbg_destroy_psa_contex()
65 psa_ctx->operation = psa_cipher_operation_init(); in ctr_drbg_destroy_psa_contex()
66 psa_ctx->key_id = MBEDTLS_SVC_KEY_ID_INIT; in ctr_drbg_destroy_psa_contex()
77 ctx->psa_ctx.key_id = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_ctr_drbg_init()
78 ctx->psa_ctx.operation = psa_cipher_operation_init(); in mbedtls_ctr_drbg_init()
[all …]
/mbedtls-latest/include/mbedtls/
Dctr_drbg.h208 mbedtls_ctr_drbg_psa_context MBEDTLS_PRIVATE(psa_ctx); /*!< The PSA context. */