Lines Matching refs:algorithm
33 uint32_t algorithm, uint32_t mode, in TEE_AllocateOperation() argument
47 if (algorithm == TEE_ALG_AES_XTS || algorithm == TEE_ALG_SM2_KEP || in TEE_AllocateOperation()
48 algorithm == TEE_ALG_SM4_XTS) in TEE_AllocateOperation()
52 switch (algorithm) { in TEE_AllocateOperation()
119 switch (algorithm) { in TEE_AllocateOperation()
135 if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_AES) in TEE_AllocateOperation()
137 else if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_SM4) in TEE_AllocateOperation()
284 op->info.algorithm = algorithm; in TEE_AllocateOperation()
285 op->info.operationClass = TEE_ALG_GET_CLASS(algorithm); in TEE_AllocateOperation()
287 if (algorithm == TEE_ALG_RSASSA_PKCS1_V1_5) in TEE_AllocateOperation()
291 op->info.digestLength = TEE_ALG_GET_DIGEST_SIZE(algorithm); in TEE_AllocateOperation()
312 if (TEE_ALG_GET_CLASS(algorithm) != TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
314 TEE_ObjectType key_type = TEE_ALG_GET_KEY_TYPE(algorithm, in TEE_AllocateOperation()
336 res = _utee_cryp_state_alloc(algorithm, mode, (unsigned long)op->key1, in TEE_AllocateOperation()
346 if (TEE_ALG_GET_CLASS(algorithm) == TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
485 op_info->algorithm = op->info.algorithm; in TEE_GetOperationInfoMultiple()
729 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation()
861 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherInit()
862 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherInit()
863 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherInit()
864 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD) in TEE_CipherInit()
951 if (op->info.algorithm == TEE_ALG_AES_CTS) in tee_buffer_update()
1093 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherDoFinal()
1094 operation->info.algorithm == TEE_ALG_AES_CBC_NOPAD || in TEE_CipherDoFinal()
1095 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherDoFinal()
1096 operation->info.algorithm == TEE_ALG_DES_CBC_NOPAD || in TEE_CipherDoFinal()
1097 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherDoFinal()
1098 operation->info.algorithm == TEE_ALG_DES3_CBC_NOPAD || in TEE_CipherDoFinal()
1099 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD || in TEE_CipherDoFinal()
1100 operation->info.algorithm == TEE_ALG_SM4_CBC_NOPAD) { in TEE_CipherDoFinal()
1333 if (operation->info.algorithm == TEE_ALG_AES_GCM) { in TEE_AEInit()
1796 if (TEE_ALG_GET_CLASS(operation->info.algorithm) != in TEE_DeriveKey()