Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dcipher.c216 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_free() local
219 if (cipher_psa->slot_state == MBEDTLS_CIPHER_PSA_KEY_OWNED) { in mbedtls_cipher_free()
221 (void) psa_destroy_key(cipher_psa->slot); in mbedtls_cipher_free()
224 mbedtls_zeroize_and_free(cipher_psa, sizeof(*cipher_psa)); in mbedtls_cipher_free()
302 mbedtls_cipher_context_psa *cipher_psa; in mbedtls_cipher_setup_psa() local
320 cipher_psa = mbedtls_calloc(1, sizeof(mbedtls_cipher_context_psa)); in mbedtls_cipher_setup_psa()
321 if (cipher_psa == NULL) { in mbedtls_cipher_setup_psa()
324 cipher_psa->alg = alg; in mbedtls_cipher_setup_psa()
325 ctx->cipher_ctx = cipher_psa; in mbedtls_cipher_setup_psa()
362 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_setkey() local
[all …]