Lines Matching refs:cipher_psa

180             mbedtls_cipher_context_psa * const cipher_psa =  in mbedtls_cipher_free()  local
183 if( cipher_psa->slot_state == MBEDTLS_CIPHER_PSA_KEY_OWNED ) in mbedtls_cipher_free()
186 (void) psa_destroy_key( cipher_psa->slot ); in mbedtls_cipher_free()
189 mbedtls_platform_zeroize( cipher_psa, sizeof( *cipher_psa ) ); in mbedtls_cipher_free()
190 mbedtls_free( cipher_psa ); in mbedtls_cipher_free()
247 mbedtls_cipher_context_psa *cipher_psa; in mbedtls_cipher_setup_psa() local
262 cipher_psa = mbedtls_calloc( 1, sizeof(mbedtls_cipher_context_psa ) ); in mbedtls_cipher_setup_psa()
263 if( cipher_psa == NULL ) in mbedtls_cipher_setup_psa()
265 cipher_psa->alg = alg; in mbedtls_cipher_setup_psa()
266 ctx->cipher_ctx = cipher_psa; in mbedtls_cipher_setup_psa()
288 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_setkey() local
302 if( cipher_psa->slot_state != MBEDTLS_CIPHER_PSA_KEY_UNSET ) in mbedtls_cipher_setkey()
318 psa_set_key_algorithm( &attributes, cipher_psa->alg ); in mbedtls_cipher_setkey()
321 &cipher_psa->slot ); in mbedtls_cipher_setkey()
335 cipher_psa->slot_state = MBEDTLS_CIPHER_PSA_KEY_OWNED; in mbedtls_cipher_setkey()
1275 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_crypt() local
1285 cipher_psa->slot, in mbedtls_cipher_crypt()
1286 cipher_psa->alg ); in mbedtls_cipher_crypt()
1291 cipher_psa->slot, in mbedtls_cipher_crypt()
1292 cipher_psa->alg ); in mbedtls_cipher_crypt()
1367 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_aead_encrypt() local
1377 status = psa_aead_encrypt( cipher_psa->slot, in mbedtls_cipher_aead_encrypt()
1378 cipher_psa->alg, in mbedtls_cipher_aead_encrypt()
1447 mbedtls_cipher_context_psa * const cipher_psa = in mbedtls_cipher_aead_decrypt() local
1457 status = psa_aead_decrypt( cipher_psa->slot, in mbedtls_cipher_aead_decrypt()
1458 cipher_psa->alg, in mbedtls_cipher_aead_decrypt()