Searched refs:mtls_ctx (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/crypto/ |
D | crypto_mtls_shim.c | 184 mbedtls_ccm_context *mtls_ctx = MTLS_GET_CTX(ctx, ccm); in mtls_ccm_encrypt_auth() local 187 ret = mbedtls_ccm_encrypt_and_tag(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_encrypt_auth() 213 mbedtls_ccm_context *mtls_ctx = MTLS_GET_CTX(ctx, ccm); in mtls_ccm_decrypt_auth() local 216 ret = mbedtls_ccm_auth_decrypt(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_decrypt_auth() 245 mbedtls_gcm_context *mtls_ctx = MTLS_GET_CTX(ctx, gcm); in mtls_gcm_encrypt_auth() local 248 ret = mbedtls_gcm_crypt_and_tag(mtls_ctx, MBEDTLS_GCM_ENCRYPT, in mtls_gcm_encrypt_auth() 273 mbedtls_gcm_context *mtls_ctx = MTLS_GET_CTX(ctx, gcm); in mtls_gcm_decrypt_auth() local 276 ret = mbedtls_gcm_auth_decrypt(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_gcm_decrypt_auth()
|