From: Dariusz Michaluk Date: Thu, 20 Jun 2024 08:40:18 +0000 (+0200) Subject: Fix build error on 64 bit arch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F313241%2F2;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Fix build error on 64 bit arch Change-Id: I7761781ce448dd91fe6fd382e05a2eaa42d69f0a --- diff --git a/src/ckm/unprivileged/encryption-decryption.cpp b/src/ckm/unprivileged/encryption-decryption.cpp index 59358d6f..422117c7 100644 --- a/src/ckm/unprivileged/encryption-decryption.cpp +++ b/src/ckm/unprivileged/encryption-decryption.cpp @@ -616,7 +616,7 @@ void testCtrEncryptionInvalidLength(const Algo& algo) encryptedTmp = nullptr; }; // invalid counter size - setParam(params, CKMC_PARAM_ED_CTR_LEN, 0ULL); + setParam(params, CKMC_PARAM_ED_CTR_LEN, UINT64_C(0)); test(); setParam(params, CKMC_PARAM_ED_CTR_LEN, CTR_DEFAULT_LEN+1); test(); @@ -678,7 +678,7 @@ void testCtrDecryptionInvalidLength(const Algo& algo) decrypted = nullptr; }; // invalid counter size - setParam(ret.params, CKMC_PARAM_ED_CTR_LEN, 0ULL); + setParam(ret.params, CKMC_PARAM_ED_CTR_LEN, UINT64_C(0)); test(); setParam(ret.params, CKMC_PARAM_ED_CTR_LEN, CTR_DEFAULT_LEN+1); test();