Home
last modified time | relevance | path

Searched refs:srcSize (Results 1 – 2 of 2) sorted by relevance

/CTR-SDK-4.2.7-SampleDemos/enc/
Denc_Main.cpp46 s32 srcSize, dstSize; in nnMain() local
51 srcSize = -1; in nnMain()
53 NULL, &dstSize, utf8, &srcSize in nnMain()
59 srcSize, std::strlen(reinterpret_cast<const char*>(utf8))); in nnMain()
62 buffer16, &dstSize, utf8, &srcSize in nnMain()
68 srcSize, std::strlen(reinterpret_cast<const char*>(utf8))); in nnMain()
77 srcSize = -1; in nnMain()
79 NULL, &dstSize, utf16, &srcSize in nnMain()
85 srcSize, std::wcslen(reinterpret_cast<const wchar_t*>(utf16))); in nnMain()
88 buffer8, &dstSize, utf16, &srcSize in nnMain()
[all …]
/CTR-SDK-4.2.7-SampleDemos/crypto/BlockCipher/
Dmain.cpp69 …void Encrypt(void* pDst, size_t dstSize, const void* pSrc, size_t srcSize, const void* pKey, size_… in Encrypt() argument
74 NN_EQUAL_ASSERT(dstSize, GetCipherSize1(srcSize)); in Encrypt()
77 nn::crypto::EncryptAes128Ctr(pDst, pSrc, srcSize, pKey); in Encrypt()
79 …void Decrypt(void* pDst, size_t dstSize, const void* pSrc, size_t srcSize, const void* pKey, size_… in Decrypt() argument
84 NN_EQUAL_ASSERT(GetCipherSize1(dstSize), srcSize); in Decrypt()
87 nn::crypto::DecryptAes128Ctr(pDst, pSrc, srcSize, pKey); in Decrypt()
89 …void EncryptAndGenerate(void* pDst, size_t dstSize, const void* pSrc, size_t srcSize, const void* … in EncryptAndGenerate() argument
94 NN_EQUAL_ASSERT(dstSize, GetCipherSize2(srcSize)); in EncryptAndGenerate()
97 nn::crypto::EncryptAndGenerateAes128Ccm(pDst, pSrc, srcSize, pKey); in EncryptAndGenerate()
99 …bool DecryptAndVerify(void* pDst, size_t dstSize, const void* pSrc, size_t srcSize, const void* pK… in DecryptAndVerify() argument
[all …]