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()
51 switch (algorithm) { in TEE_AllocateOperation()
114 switch (algorithm) { in TEE_AllocateOperation()
129 if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_AES) in TEE_AllocateOperation()
131 else if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_SM4) in TEE_AllocateOperation()
276 op->info.algorithm = algorithm; in TEE_AllocateOperation()
277 op->info.operationClass = TEE_ALG_GET_CLASS(algorithm); in TEE_AllocateOperation()
279 if (algorithm == TEE_ALG_RSASSA_PKCS1_V1_5) in TEE_AllocateOperation()
283 op->info.digestLength = TEE_ALG_GET_DIGEST_SIZE(algorithm); in TEE_AllocateOperation()
304 if (TEE_ALG_GET_CLASS(algorithm) != TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
306 TEE_ObjectType key_type = TEE_ALG_GET_KEY_TYPE(algorithm, in TEE_AllocateOperation()
328 res = _utee_cryp_state_alloc(algorithm, mode, (unsigned long)op->key1, in TEE_AllocateOperation()
338 if (TEE_ALG_GET_CLASS(algorithm) == TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
477 op_info->algorithm = op->info.algorithm; in TEE_GetOperationInfoMultiple()
721 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation()
853 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherInit()
854 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherInit()
855 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherInit()
856 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD) in TEE_CipherInit()
943 if (op->info.algorithm == TEE_ALG_AES_CTS) in tee_buffer_update()
1085 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherDoFinal()
1086 operation->info.algorithm == TEE_ALG_AES_CBC_NOPAD || in TEE_CipherDoFinal()
1087 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherDoFinal()
1088 operation->info.algorithm == TEE_ALG_DES_CBC_NOPAD || in TEE_CipherDoFinal()
1089 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherDoFinal()
1090 operation->info.algorithm == TEE_ALG_DES3_CBC_NOPAD || in TEE_CipherDoFinal()
1091 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD || in TEE_CipherDoFinal()
1092 operation->info.algorithm == TEE_ALG_SM4_CBC_NOPAD) { in TEE_CipherDoFinal()
1325 if (operation->info.algorithm == TEE_ALG_AES_GCM) { in TEE_AEInit()
1788 if (TEE_ALG_GET_CLASS(operation->info.algorithm) != in TEE_DeriveKey()