Lines Matching refs:algorithm
39 uint32_t algorithm, uint32_t mode, in TEE_AllocateOperation() argument
53 if (algorithm == TEE_ALG_AES_XTS || algorithm == TEE_ALG_SM2_KEP || in TEE_AllocateOperation()
54 algorithm == TEE_ALG_SM4_XTS) in TEE_AllocateOperation()
58 switch (algorithm) { in TEE_AllocateOperation()
136 switch (algorithm) { in TEE_AllocateOperation()
152 if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_AES) in TEE_AllocateOperation()
154 else if (TEE_ALG_GET_MAIN_ALG(algorithm) == TEE_MAIN_ALGO_SM4) in TEE_AllocateOperation()
317 op->info.algorithm = algorithm; in TEE_AllocateOperation()
318 op->info.operationClass = TEE_ALG_GET_CLASS(algorithm); in TEE_AllocateOperation()
320 if (algorithm == TEE_ALG_RSASSA_PKCS1_V1_5) in TEE_AllocateOperation()
324 op->info.digestLength = TEE_ALG_GET_DIGEST_SIZE(algorithm); in TEE_AllocateOperation()
352 if (TEE_ALG_GET_CLASS(algorithm) != TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
354 TEE_ObjectType key_type = TEE_ALG_GET_KEY_TYPE(algorithm, in TEE_AllocateOperation()
376 res = _utee_cryp_state_alloc(algorithm, mode, (unsigned long)op->key1, in TEE_AllocateOperation()
386 if (TEE_ALG_GET_CLASS(algorithm) == TEE_OPERATION_DIGEST) { in TEE_AllocateOperation()
532 op_info->algorithm = op->info.algorithm; in TEE_GetOperationInfoMultiple()
825 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation()
1046 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherInit()
1047 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherInit()
1048 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherInit()
1049 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD) in TEE_CipherInit()
1308 if (operation->info.algorithm == TEE_ALG_AES_ECB_NOPAD || in TEE_CipherDoFinal()
1309 operation->info.algorithm == TEE_ALG_AES_CBC_NOPAD || in TEE_CipherDoFinal()
1310 operation->info.algorithm == TEE_ALG_DES_ECB_NOPAD || in TEE_CipherDoFinal()
1311 operation->info.algorithm == TEE_ALG_DES_CBC_NOPAD || in TEE_CipherDoFinal()
1312 operation->info.algorithm == TEE_ALG_DES3_ECB_NOPAD || in TEE_CipherDoFinal()
1313 operation->info.algorithm == TEE_ALG_DES3_CBC_NOPAD || in TEE_CipherDoFinal()
1314 operation->info.algorithm == TEE_ALG_SM4_ECB_NOPAD || in TEE_CipherDoFinal()
1315 operation->info.algorithm == TEE_ALG_SM4_CBC_NOPAD) { in TEE_CipherDoFinal()
1598 if (operation->info.algorithm == TEE_ALG_AES_GCM) { in TEE_AEInit()
2324 if (TEE_ALG_GET_CLASS(operation->info.algorithm) != in TEE_DeriveKey()
2366 if (TEE_ALG_GET_CLASS(operation->info.algorithm) != in __GP11_TEE_DeriveKey()