| /optee_os/core/tee/ |
| H A D | tee_fs_key_manager.c | 165 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 D | tee_cryp_utl.c | 105 if (mode != TEE_MODE_ENCRYPT && mode != TEE_MODE_DECRYPT) in tee_do_cipher_update()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | des3_ecb.c | 49 if (mode == TEE_MODE_ENCRYPT) in mbed_des3_ecb_init() 54 if (mode == TEE_MODE_ENCRYPT) in mbed_des3_ecb_init()
|
| H A D | des_ecb.c | 47 if (mode == TEE_MODE_ENCRYPT) in mbed_des_ecb_init()
|
| H A D | des_cbc.c | 52 if (mode == TEE_MODE_ENCRYPT) { in mbed_des_cbc_init()
|
| H A D | des3_cbc.c | 53 if (mode == TEE_MODE_ENCRYPT) { in mbed_des3_cbc_init()
|
| H A D | aes_ecb.c | 49 if (mode == TEE_MODE_ENCRYPT) { in mbed_aes_ecb_init()
|
| H A D | aes_cbc.c | 53 if (mode == TEE_MODE_ENCRYPT) { in mbed_aes_cbc_init()
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | aes-gcm-ce.c | 143 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 D | cbc-mac.c | 53 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 D | aes-gcm.c | 98 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 D | sm4-ecb.c | 42 if (mode == TEE_MODE_ENCRYPT) in sm4_ecb_init()
|
| H A D | rng_fortuna.c | 112 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 D | sm4-cbc.c | 43 if (mode == TEE_MODE_ENCRYPT) in sm4_cbc_init()
|
| H A D | sm4-xts.c | 47 if (mode == TEE_MODE_ENCRYPT) in sm4_xts_init()
|
| H A D | aes-gcm-sw.c | 139 if (m == TEE_MODE_ENCRYPT) in internal_aes_gcm_update_payload_blocks()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | gcm.c | 117 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 D | ccm.c | 135 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 D | ctr.c | 43 if (mode == TEE_MODE_ENCRYPT) in ltc_ctr_init()
|
| H A D | xts.c | 57 if (mode == TEE_MODE_ENCRYPT) in ltc_xts_init()
|
| H A D | cbc.c | 48 if (mode == TEE_MODE_ENCRYPT) in ltc_cbc_init()
|
| H A D | ecb.c | 46 if (mode == TEE_MODE_ENCRYPT) in ltc_ecb_init()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | cipher.c | 22 mode = TEE_MODE_ENCRYPT; in do_init()
|
| /optee_os/core/drivers/crypto/crypto_api/authenc/ |
| H A D | authenc.c | 94 .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 D | entry.c | 184 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()
|