/optee_os/core/drivers/crypto/stm32/ |
A D | cipher.c | 43 if (dinit->key1.length == 16 && in stm32_cipher_initialize() 47 memcpy(temp_key, dinit->key1.data, dinit->key1.length); in stm32_cipher_initialize() 48 memcpy(temp_key + dinit->key1.length, dinit->key1.data, in stm32_cipher_initialize() 49 dinit->key1.length / 2); in stm32_cipher_initialize() 53 key_size = dinit->key1.length; in stm32_cipher_initialize() 54 key = dinit->key1.data; in stm32_cipher_initialize()
|
/optee_os/core/arch/arm/crypto/ |
A D | aes_modes_armv8a_ce_a32.S | 24 enc_round q0, \key1 29 dec_round q0, \key1 34 enc_round q0, \key1 40 dec_round q0, \key1 46 enc_round q0, \key1 47 enc_round q1, \key1 48 enc_round q2, \key1 55 dec_round q0, \key1 56 dec_round q1, \key1 57 dec_round q2, \key1 [all …]
|
A D | aes_armv8a_ce.c | 221 void crypto_accel_aes_xts_enc(void *out, const void *in, const void *key1, in crypto_accel_aes_xts_enc() argument 228 assert(out && in && key1 && key2 && tweak); in crypto_accel_aes_xts_enc() 231 ce_aes_xts_encrypt(out, in, key1, round_count, block_count, key2, in crypto_accel_aes_xts_enc() 236 void crypto_accel_aes_xts_dec(void *out, const void *in, const void *key1, in crypto_accel_aes_xts_dec() argument 243 assert(out && in && key1 && key2 && tweak); in crypto_accel_aes_xts_dec() 246 ce_aes_xts_decrypt(out, in, key1, round_count, block_count, key2, in crypto_accel_aes_xts_dec()
|
/optee_os/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_init.c | 27 int xts_start(int cipher, const unsigned char *key1, const unsigned char *key2, unsigned long keyle… in xts_start() argument 33 LTC_ARGCHK(key1 != NULL); in xts_start() 47 if ((err = cipher_descriptor[cipher]->setup(key1, keylen, num_rounds, &xts->key1)) != CRYPT_OK) { in xts_start()
|
A D | xts_test.c | 33 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_encrypt() 60 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_decrypt() 83 unsigned char key1[32]; in xts_test() 237 err = xts_start(idx, tests[i].key1, tests[i].key2, tests[i].keylen / 2, 0, &xts); in xts_test()
|
A D | xts_decrypt.c | 34 err = cipher_descriptor[xts->cipher]->ecb_decrypt(P, P, &xts->key1); in _tweak_uncrypt() 96 …if ((err = cipher_descriptor[xts->cipher]->accel_xts_decrypt(ct, pt, lim, tweak, &xts->key1, &xts-… in xts_decrypt()
|
A D | xts_encrypt.c | 34 if ((err = cipher_descriptor[xts->cipher]->ecb_encrypt(C, C, &xts->key1)) != CRYPT_OK) { in _tweak_crypt() 98 …if ((err = cipher_descriptor[xts->cipher]->accel_xts_encrypt(pt, ct, lim, tweak, &xts->key1, &xts-… in xts_encrypt()
|
/optee_os/core/drivers/crypto/crypto_api/cipher/ |
A D | cipher.c | 75 TEE_OperationMode mode, const uint8_t *key1, in cipher_init() argument 82 if ((!key1 && key1_len) || (!key2 && key2_len) || (!iv && iv_len)) { in cipher_init() 84 CRYPTO_TRACE("key1 @%p-%zu bytes", key1, key1_len); in cipher_init() 85 CRYPTO_TRACE("key2 @%p-%zu bytes", key1, key1_len); in cipher_init() 94 .key1.data = (uint8_t *)key1, in cipher_init() 95 .key1.length = key1_len, in cipher_init()
|
/optee_os/lib/libmbedtls/core/ |
A D | des3_ecb.c | 33 const uint8_t *key1, size_t key1_len, in mbed_des3_ecb_init() argument 50 mbed_res = mbedtls_des3_set3key_enc(&c->des3_ctx, key1); in mbed_des3_ecb_init() 52 mbed_res = mbedtls_des3_set3key_dec(&c->des3_ctx, key1); in mbed_des3_ecb_init() 55 mbed_res = mbedtls_des3_set2key_enc(&c->des3_ctx, key1); in mbed_des3_ecb_init() 57 mbed_res = mbedtls_des3_set2key_dec(&c->des3_ctx, key1); in mbed_des3_ecb_init()
|
A D | des3_cbc.c | 35 const uint8_t *key1, size_t key1_len, in mbed_des3_cbc_init() argument 56 mbed_res = mbedtls_des3_set3key_enc(&c->des3_ctx, key1); in mbed_des3_cbc_init() 58 mbed_res = mbedtls_des3_set2key_enc(&c->des3_ctx, key1); in mbed_des3_cbc_init() 62 mbed_res = mbedtls_des3_set3key_dec(&c->des3_ctx, key1); in mbed_des3_cbc_init() 64 mbed_res = mbedtls_des3_set2key_dec(&c->des3_ctx, key1); in mbed_des3_cbc_init()
|
A D | des_ecb.c | 32 TEE_OperationMode mode, const uint8_t *key1, in mbed_des_ecb_init() argument 48 mbed_res = mbedtls_des_setkey_enc(&c->des_ctx, key1); in mbed_des_ecb_init() 50 mbed_res = mbedtls_des_setkey_dec(&c->des_ctx, key1); in mbed_des_ecb_init()
|
A D | des_cbc.c | 34 TEE_OperationMode mode, const uint8_t *key1, in mbed_des_cbc_init() argument 54 mbed_res = mbedtls_des_setkey_enc(&c->des_ctx, key1); in mbed_des_cbc_init() 57 mbed_res = mbedtls_des_setkey_dec(&c->des_ctx, key1); in mbed_des_cbc_init()
|
A D | aes_ecb.c | 37 TEE_OperationMode mode, const uint8_t *key1, in mbed_aes_ecb_init() argument 51 mbed_res = mbedtls_aes_setkey_enc(&c->aes_ctx, key1, in mbed_aes_ecb_init() 55 mbed_res = mbedtls_aes_setkey_dec(&c->aes_ctx, key1, in mbed_aes_ecb_init()
|
A D | aes_cbc.c | 38 TEE_OperationMode mode, const uint8_t *key1, in mbed_aes_cbc_init() argument 55 mbed_res = mbedtls_aes_setkey_enc(&c->aes_ctx, key1, in mbed_aes_cbc_init() 59 mbed_res = mbedtls_aes_setkey_dec(&c->aes_ctx, key1, in mbed_aes_cbc_init()
|
/optee_os/core/drivers/crypto/caam/cipher/ |
A D | caam_cipher.c | 176 ctx->key1.length)); in caam_cipher_block() 177 caam_desc_add_ptr(desc, ctx->key1.paddr); in caam_cipher_block() 343 caam_free_buf(&ctx->key1); in do_free_intern() 387 if (src->key1.length) { in caam_cipher_copy_state() 388 struct drvcrypt_buf key1 = { in caam_cipher_copy_state() local 389 .data = src->key1.data, in caam_cipher_copy_state() 390 .length = src->key1.length in caam_cipher_copy_state() 392 copy_ctx_data(&dst->key1, &key1); in caam_cipher_copy_state() 437 if (!dinit->key1.data || !dinit->key1.length) in caam_cipher_initialize() 440 retstatus = do_check_keysize(&alg->def_key, dinit->key1.length); in caam_cipher_initialize() [all …]
|
/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 20 TEE_ObjectHandle key1; member 613 if (!key1 && !key2) { in TEE_SetOperationKey2() 690 res = TEE_CopyObjectAttributes1(operation->key1, key1); in TEE_SetOperationKey2() 730 key1 = src_op->key1; in TEE_CopyOperation() 846 !(operation->key1)) in TEE_CipherInit() 1169 !(operation->key1)) in TEE_MACInit() 1644 if (!operation->key1) in TEE_AsymmetricEncrypt() 1681 if (!operation->key1) in TEE_AsymmetricDecrypt() 1718 if (!operation->key1) in TEE_AsymmetricSignDigest() 1755 if (!operation->key1) in TEE_AsymmetricVerifyDigest() [all …]
|
/optee_os/core/crypto/ |
A D | sm4-ecb.c | 31 TEE_OperationMode mode, const uint8_t *key1, in sm4_ecb_init() argument 43 sm4_setkey_enc(&c->state, key1); in sm4_ecb_init() 45 sm4_setkey_dec(&c->state, key1); in sm4_ecb_init()
|
A D | sm4-cbc.c | 33 TEE_OperationMode mode, const uint8_t *key1, in sm4_cbc_init() argument 44 sm4_setkey_enc(&c->state, key1); in sm4_cbc_init() 46 sm4_setkey_dec(&c->state, key1); in sm4_cbc_init()
|
A D | sm4-ctr.c | 34 const uint8_t *key1, size_t key1_len, in sm4_ctr_init() argument 44 sm4_setkey_enc(&c->state, key1); in sm4_ctr_init()
|
A D | aes-cts.c | 50 TEE_OperationMode mode, const uint8_t *key1, in cts_init() argument 59 res = crypto_cipher_init(c->ecb, mode, key1, key1_len, key2, key2_len, in cts_init() 64 return crypto_cipher_init(c->cbc, mode, key1, key1_len, key2, key2_len, in cts_init()
|
/optee_os/core/include/crypto/ |
A D | crypto_accel.h | 34 void crypto_accel_aes_xts_enc(void *out, const void *in, const void *key1, 38 void crypto_accel_aes_xts_dec(void *out, const void *in, const void *key1,
|
/optee_os/core/drivers/crypto/se050/core/ |
A D | cipher.c | 25 dinit->key1.data, dinit->key1.length, in do_init()
|
/optee_os/core/lib/libtomcrypt/ |
A D | ctr.c | 32 TEE_OperationMode mode, const uint8_t *key1, in ltc_ctr_init() argument 48 if (ctr_start(c->cipher_idx, iv, key1, key1_len, 0, in ltc_ctr_init()
|
A D | xts.c | 36 TEE_OperationMode mode, const uint8_t *key1, in ltc_xts_init() argument 63 if (xts_start(c->cipher_idx, key1, key2, key1_len, 0, in ltc_xts_init()
|
A D | cbc.c | 35 TEE_OperationMode mode, const uint8_t *key1, in ltc_cbc_init() argument 42 const uint8_t *k = key1; in ltc_cbc_init()
|