Home
last modified time | relevance | path

Searched refs:TEE_MODE_ENCRYPT (Results 1 – 25 of 40) sorted by relevance

12

/optee_os/core/tee/
H A Dtee_fs_key_manager.c165 return tee_fs_fek_crypt(uuid, TEE_MODE_ENCRYPT, buf, in tee_fs_generate_fek()
187 res = crypto_cipher_init(ctx, TEE_MODE_ENCRYPT, key, in aes_ecb()
192 res = crypto_cipher_update(ctx, TEE_MODE_ENCRYPT, true, in, in aes_ecb()
239 DMSG("%scrypt block #%u", (mode == TEE_MODE_ENCRYPT) ? "En" : "De", in tee_fs_crypt_block()
H A Dtee_cryp_utl.c105 if (mode != TEE_MODE_ENCRYPT && mode != TEE_MODE_DECRYPT) in tee_do_cipher_update()
/optee_os/lib/libmbedtls/core/
H A Ddes3_ecb.c49 if (mode == TEE_MODE_ENCRYPT) in mbed_des3_ecb_init()
54 if (mode == TEE_MODE_ENCRYPT) in mbed_des3_ecb_init()
H A Ddes_ecb.c47 if (mode == TEE_MODE_ENCRYPT) in mbed_des_ecb_init()
H A Ddes_cbc.c52 if (mode == TEE_MODE_ENCRYPT) { in mbed_des_cbc_init()
H A Ddes3_cbc.c53 if (mode == TEE_MODE_ENCRYPT) { in mbed_des3_cbc_init()
H A Daes_ecb.c49 if (mode == TEE_MODE_ENCRYPT) { in mbed_aes_ecb_init()
H A Daes_cbc.c53 if (mode == TEE_MODE_ENCRYPT) { in mbed_aes_cbc_init()
/optee_os/core/arch/arm/crypto/
H A Daes-gcm-ce.c143 if (mode == TEE_MODE_ENCRYPT) { in update_payload_2block()
197 if (mode == TEE_MODE_ENCRYPT) in internal_aes_gcm_update_payload_blocks()
223 if (mode == TEE_MODE_ENCRYPT) in internal_aes_gcm_update_payload_blocks()
/optee_os/core/crypto/
H A Dcbc-mac.c53 return crypto_cipher_init(mc->cbc_ctx, TEE_MODE_ENCRYPT, key, len, in crypto_cbc_mac_init()
74 res = crypto_cipher_update(mc->cbc_ctx, TEE_MODE_ENCRYPT, in crypto_cbc_mac_update()
101 res = crypto_cipher_update(mc->cbc_ctx, TEE_MODE_ENCRYPT, in crypto_cbc_mac_update()
H A Daes-gcm.c98 if (mode == TEE_MODE_ENCRYPT) { in __gcm_init()
220 if (mode == TEE_MODE_ENCRYPT) in __gcm_update_payload()
239 if (mode == TEE_MODE_ENCRYPT) in __gcm_update_payload()
300 res = operation_final(state, enc_key, TEE_MODE_ENCRYPT, src, len, dst); in __gcm_enc_final()
377 res = __gcm_init(&state, enc_key, TEE_MODE_ENCRYPT, nonce, nonce_len, in internal_aes_gcm_enc()
H A Dsm4-ecb.c42 if (mode == TEE_MODE_ENCRYPT) in sm4_ecb_init()
H A Drng_fortuna.c112 return crypto_cipher_init(ctx, TEE_MODE_ENCRYPT, in cipher_init()
322 TEE_MODE_ENCRYPT, false, in generate_blocks()
467 res = crypto_cipher_init(state.ctx, TEE_MODE_ENCRYPT, in maybe_reseed()
H A Dsm4-cbc.c43 if (mode == TEE_MODE_ENCRYPT) in sm4_cbc_init()
H A Dsm4-xts.c47 if (mode == TEE_MODE_ENCRYPT) in sm4_xts_init()
H A Daes-gcm-sw.c139 if (m == TEE_MODE_ENCRYPT) in internal_aes_gcm_update_payload_blocks()
/optee_os/core/lib/libtomcrypt/
H A Dgcm.c117 if (mode == TEE_MODE_ENCRYPT) { in crypto_aes_gcm_update_payload()
152 res = crypto_aes_gcm_update_payload(aectx, TEE_MODE_ENCRYPT, src_data, in crypto_aes_gcm_enc_final()
H A Dccm.c135 if (mode == TEE_MODE_ENCRYPT) { in crypto_aes_ccm_update_payload()
162 res = crypto_aes_ccm_update_payload(aectx, TEE_MODE_ENCRYPT, src_data, in crypto_aes_ccm_enc_final()
H A Dctr.c43 if (mode == TEE_MODE_ENCRYPT) in ltc_ctr_init()
H A Dxts.c57 if (mode == TEE_MODE_ENCRYPT) in ltc_xts_init()
H A Dcbc.c48 if (mode == TEE_MODE_ENCRYPT) in ltc_cbc_init()
H A Decb.c46 if (mode == TEE_MODE_ENCRYPT) in ltc_ecb_init()
/optee_os/core/drivers/crypto/se050/core/
H A Dcipher.c22 mode = TEE_MODE_ENCRYPT; in do_init()
/optee_os/core/drivers/crypto/crypto_api/authenc/
H A Dauthenc.c94 .encrypt = (mode == TEE_MODE_ENCRYPT), in authenc_init()
172 .encrypt = (mode == TEE_MODE_ENCRYPT), in authenc_update_payload()
/optee_os/ta/trusted_keys/
H A Dentry.c184 if (mode == TEE_MODE_ENCRYPT) { in huk_crypt()
238 res = huk_crypt(TEE_MODE_ENCRYPT, in, in_sz, out, &out_sz); in seal_trusted_key()

12