Home
last modified time | relevance | path

Searched refs:tempSpec (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/crypto_framework/test/unittest/src/sm2/
H A Dcrypto_sm2_util_test.cpp98 *spec = tempSpec; in ConstructCorrectSm2CipherTextSpec()
114 *spec = tempSpec; in ConstructMissYErrorSm2CipherTextSpec()
130 *spec = tempSpec; in ConstructMissXErrorSm2CipherTextSpec()
146 *spec = tempSpec; in ConstructMissHashDataErrorSm2CipherTextSpec()
162 *spec = tempSpec; in ConstructMissCipherDataErrorSm2CipherTextSpec()
181 *spec = tempSpec; in ConstructLenErrorSm2CipherTextSpec()
199 *spec = tempSpec; in ConstructLenZeroXSm2CipherTextSpec()
217 *spec = tempSpec; in ConstructLenZeroYSm2CipherTextSpec()
235 *spec = tempSpec; in ConstructLenZeroCipherDataSm2CipherTextSpec()
253 *spec = tempSpec; in ConstructLenZeroHashDataSm2CipherTextSpec()
[all …]
/ohos5.0/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfsm2create_fuzzer/
H A Dhcfsm2create_fuzzer.cpp67 if (tempSpec == nullptr) { in ConstructCorrectSm2CipherTextXSpec()
76 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextXSpec()
77 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructCorrectSm2CipherTextXSpec()
78 *spec = tempSpec; in ConstructCorrectSm2CipherTextXSpec()
85 if (tempSpec == nullptr) { in ConstructCorrectSm2CipherTextYSpec()
94 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextYSpec()
96 *spec = tempSpec; in ConstructCorrectSm2CipherTextYSpec()
103 if (tempSpec == nullptr) { in ConstructCorrectSm2CipherTextSpec()
111 tempSpec->cipherTextData.len = size; in ConstructCorrectSm2CipherTextSpec()
112 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextSpec()
[all …]
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
H A Dcipher_sm2_crypto_util_openssl.c106 if (tempSpec->cipherTextData.data == NULL) { in BuildSm2CiphertextSpec()
110 tempSpec->hashData.data = (unsigned char *)HcfMalloc(c3Len, 0); in BuildSm2CiphertextSpec()
111 if (tempSpec->hashData.data == NULL) { in BuildSm2CiphertextSpec()
115 (void)memcpy_s(tempSpec->cipherTextData.data, c2Len, c2Data, c2Len); in BuildSm2CiphertextSpec()
116 (void)memcpy_s(tempSpec->hashData.data, c3Len, c3Data, c3Len); in BuildSm2CiphertextSpec()
117 tempSpec->cipherTextData.len = c2Len; in BuildSm2CiphertextSpec()
118 tempSpec->hashData.len = c3Len; in BuildSm2CiphertextSpec()
130 if (tempSpec == NULL) { in HcfAsn1ToSm2Spec()
135 HcfResult res = BuildSm2CiphertextSpec(sm2Text, tempSpec); in HcfAsn1ToSm2Spec()
138 DestroySm2CipherTextSpec(tempSpec); in HcfAsn1ToSm2Spec()
[all …]
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_sm2_crypto_util.cpp51 if (tempSpec == nullptr) { in GetSm2CipherTextSpecFromNapiValue()
59 DestroySm2CipherTextSpec(tempSpec); in GetSm2CipherTextSpecFromNapiValue()
62 bool ret = GetBigIntFromNapiValue(env, xCoordinate, &tempSpec->xCoordinate); in GetSm2CipherTextSpecFromNapiValue()
65 DestroySm2CipherTextSpec(tempSpec); in GetSm2CipherTextSpecFromNapiValue()
68 ret = GetBigIntFromNapiValue(env, yCoordinate, &tempSpec->yCoordinate); in GetSm2CipherTextSpecFromNapiValue()
71 DestroySm2CipherTextSpec(tempSpec); in GetSm2CipherTextSpecFromNapiValue()
77 DestroySm2CipherTextSpec(tempSpec); in GetSm2CipherTextSpecFromNapiValue()
85 DestroySm2CipherTextSpec(tempSpec); in GetSm2CipherTextSpecFromNapiValue()
88 tempSpec->cipherTextData = *cipherTextBlob; in GetSm2CipherTextSpecFromNapiValue()
89 tempSpec->hashData = *hashDataBlob; in GetSm2CipherTextSpecFromNapiValue()
[all …]