Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dpkcs12.h35 #define MBEDTLS_PKCS12_PBE_ENCRYPT MBEDTLS_ENCRYPT
H A Dpkcs5.h35 #define MBEDTLS_PKCS5_ENCRYPT MBEDTLS_ENCRYPT
H A Dcipher.h202 MBEDTLS_ENCRYPT, enumerator
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dcipher.c347 if (operation != MBEDTLS_ENCRYPT && operation != MBEDTLS_DECRYPT) { in mbedtls_cipher_setkey()
430 if (MBEDTLS_ENCRYPT == operation || in mbedtls_cipher_setkey()
443 if (operation == MBEDTLS_ENCRYPT || operation == MBEDTLS_DECRYPT) { in mbedtls_cipher_setkey()
531 } else if (ctx->operation == MBEDTLS_ENCRYPT) { in mbedtls_cipher_set_iv()
599 mode = (ctx->operation == MBEDTLS_ENCRYPT) in mbedtls_cipher_update_ad()
700 (ctx->operation == MBEDTLS_ENCRYPT && in mbedtls_cipher_update()
1114 if (MBEDTLS_ENCRYPT == ctx->operation) { in mbedtls_cipher_finish()
1234 if (MBEDTLS_ENCRYPT != ctx->operation) { in mbedtls_cipher_write_tag()
1380 } else if (ctx->operation == MBEDTLS_ENCRYPT) { in mbedtls_cipher_crypt()
H A Dssl_ticket.c106 MBEDTLS_ENCRYPT); in ssl_ticket_gen_key()
194 ret = mbedtls_cipher_setkey(&key->ctx, k, bitlen, MBEDTLS_ENCRYPT); in mbedtls_ssl_ticket_rotate()
H A Dcmac.c183 MBEDTLS_ENCRYPT)) != 0) { in mbedtls_cipher_cmac_starts()
774 MBEDTLS_ENCRYPT)) != 0) { in cmac_test_subkeys()
H A Dnist_kw.c91 is_wrap ? MBEDTLS_ENCRYPT : in mbedtls_nist_kw_setkey()
H A Dpsa_crypto_cipher.c365 alg, MBEDTLS_ENCRYPT); in mbedtls_psa_cipher_encrypt_setup()
H A Dccm.c89 MBEDTLS_ENCRYPT)) != 0) { in mbedtls_ccm_setkey()
H A Dgcm.c203 MBEDTLS_ENCRYPT)) != 0) { in mbedtls_gcm_setkey()
H A Dcipher_wrap.c230 case MBEDTLS_ENCRYPT: in aes_crypt_xts_wrap()
H A Dssl_tls13_keys.c1011 MBEDTLS_ENCRYPT)) != 0) { in mbedtls_ssl_tls13_populate_transform()
H A Dpsa_crypto.c4448 psa_key_usage_t usage = (cipher_operation == MBEDTLS_ENCRYPT ? in psa_cipher_setup()
4489 if (cipher_operation == MBEDTLS_ENCRYPT) { in psa_cipher_setup()
4517 return psa_cipher_setup(operation, key, alg, MBEDTLS_ENCRYPT); in psa_cipher_encrypt_setup()
H A Dssl_tls.c8988 MBEDTLS_ENCRYPT)) != 0) { in ssl_tls12_populate_transform()