Home
last modified time | relevance | path

Searched refs:hashData (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_sm3_cipher.cpp96 uint8_t hashData[19] = {0}; variable
97 struct HksBlob hash = { 19, hashData };
118 uint8_t hashData[32] = {0}; variable
119 struct HksBlob hash = { 32, hashData };
140 uint8_t hashData[46] = {0}; variable
141 struct HksBlob hash = { 46, hashData };
H A Dhks_crypto_hal_dsa_sign.cpp110 uint8_t hashData[HKS_HMAC_DIGEST_SHA512_LEN] = {0}; in RunTestCase() local
111 struct HksBlob hash = { HKS_HMAC_DIGEST_SHA512_LEN, hashData }; in RunTestCase()
H A Dhks_crypto_hal_ecdsa_sign.cpp530 uint8_t hashData[HKS_HMAC_DIGEST_SHA512_LEN] = {0}; in RunTestCase() local
531 struct HksBlob hash = { HKS_HMAC_DIGEST_SHA512_LEN, hashData }; in RunTestCase()
H A Dhks_crypto_hal_rsa_sign.cpp1477 uint8_t hashData[HKS_HMAC_DIGEST_SHA512_LEN] = {0}; in RunTestCase() local
1478 struct HksBlob hash = { HKS_HMAC_DIGEST_SHA512_LEN, hashData }; in RunTestCase()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
H A Dkey_management_test.cpp58 uint8_t hashData[KEY_BYTES_CURVE25519] = { 0 }; variable
61 struct HksBlob invalidSizeBlob = { 0, hashData };
72 uint8_t hashData[SHA256_LEN] = { 0 }; variable
74 Uint8Buff hashBuffer = { hashData, SHA256_LEN };
76 Uint8Buff invalidBuffer = { hashData, 0 };
77 Uint8Buff shortPointBuffer = { hashData, EC_LEN - 1 };
111 uint8_t hashData[SHA_256_LENGTH] = { 0 }; variable
113 Uint8Buff hashBuff = { hashData, SHA_256_LENGTH };
/ohos5.0/base/security/crypto_framework/test/unittest/src/sm2/
H A Dcrypto_sm2_util_test.cpp96 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextSpec()
97 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructCorrectSm2CipherTextSpec()
112 tempSpec->hashData.data = g_hashData; in ConstructMissYErrorSm2CipherTextSpec()
113 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructMissYErrorSm2CipherTextSpec()
128 tempSpec->hashData.data = g_hashData; in ConstructMissXErrorSm2CipherTextSpec()
160 tempSpec->hashData.data = g_hashData; in ConstructMissCipherDataErrorSm2CipherTextSpec()
177 tempSpec->hashData.data = g_hashData; in ConstructLenErrorSm2CipherTextSpec()
197 tempSpec->hashData.data = g_hashData; in ConstructLenZeroXSm2CipherTextSpec()
215 tempSpec->hashData.data = g_hashData; in ConstructLenZeroYSm2CipherTextSpec()
233 tempSpec->hashData.data = g_hashData; in ConstructLenZeroCipherDataSm2CipherTextSpec()
[all …]
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
H A Dcipher_sm2_crypto_util_openssl.c41 …if (OpensslAsn1OctetStringSet(sm2Text->c3, spec->hashData.data, spec->hashData.len) != HCF_OPENSSL… in BuildSm2Ciphertext()
110 tempSpec->hashData.data = (unsigned char *)HcfMalloc(c3Len, 0); in BuildSm2CiphertextSpec()
111 if (tempSpec->hashData.data == NULL) { in BuildSm2CiphertextSpec()
116 (void)memcpy_s(tempSpec->hashData.data, c3Len, c3Data, c3Len); in BuildSm2CiphertextSpec()
118 tempSpec->hashData.len = c3Len; in BuildSm2CiphertextSpec()
/ohos5.0/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfsm2create_fuzzer/
H A Dhcfsm2create_fuzzer.cpp76 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextXSpec()
77 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructCorrectSm2CipherTextXSpec()
94 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextYSpec()
95 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructCorrectSm2CipherTextYSpec()
112 tempSpec->hashData.data = g_hashData; in ConstructCorrectSm2CipherTextSpec()
113 tempSpec->hashData.len = HASH_DATA_LEN; in ConstructCorrectSm2CipherTextSpec()
230 spec.hashData.data = g_hashData; in HcfSm2CreateFuzzTest()
231 spec.hashData.len = HASH_DATA_LEN; in HcfSm2CreateFuzzTest()
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/common/native/
H A Dhitracechainc_test.cpp88 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateChainId() local
92 hashData[ARRAY_FIRST_INDEX] = tv.tv_sec; in GenerateChainId()
94 hashData[ARRAY_THIRD_INDEX] = randomNum; in GenerateChainId()
102 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateSpanId() local
106 hashData[ARRAY_FIRST_INDEX] = randomNum; in GenerateSpanId()
107 hashData[ARRAY_SECOND_INDEX] = tv.tv_sec; in GenerateSpanId()
108 hashData[ARRAY_THIRD_INDEX] = tv.tv_usec; in GenerateSpanId()
116 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateParentSpanId() local
120 hashData[ARRAY_FIRST_INDEX] = tv.tv_usec; in GenerateParentSpanId()
121 hashData[ARRAY_SECOND_INDEX] = randomNum; in GenerateParentSpanId()
[all …]
H A Dhitracechaincpp_test.cpp59 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateChainId() local
63 hashData[ARRAY_FIRST_INDEX] = tv.tv_sec; in GenerateChainId()
65 hashData[ARRAY_THIRD_INDEX] = randomNum; in GenerateChainId()
74 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateSpanId() local
78 hashData[ARRAY_FIRST_INDEX] = randomNum; in GenerateSpanId()
79 hashData[ARRAY_SECOND_INDEX] = tv.tv_sec; in GenerateSpanId()
80 hashData[ARRAY_THIRD_INDEX] = tv.tv_usec; in GenerateSpanId()
88 uint64_t hashData[HASH_DATA_LENGTH]; in GenerateParentSpanId() local
92 hashData[ARRAY_FIRST_INDEX] = tv.tv_usec; in GenerateParentSpanId()
93 hashData[ARRAY_SECOND_INDEX] = randomNum; in GenerateParentSpanId()
[all …]
/ohos5.0/base/hiviewdfx/hitrace/frameworks/native/
H A Dhitracechainc.c243 uint32_t hashData[hashDataNum]; in HiTraceChainCreateSpan() local
244 hashData[0] = (uint32_t)(HiTraceChainGetDeviceId()); // 0: device id in HiTraceChainCreateSpan()
245 hashData[1] = id.parentSpanId; // 1: parent span id in HiTraceChainCreateSpan()
246 hashData[2] = id.spanId; // 2: span id in HiTraceChainCreateSpan()
247 hashData[3] = (uint32_t)(tv.tv_sec); // 3: second in HiTraceChainCreateSpan()
248 hashData[4] = (uint32_t)(tv.tv_usec); // 4: usecond in HiTraceChainCreateSpan()
250 uint32_t hash = HashFunc(hashData, hashDataNum * sizeof(uint32_t)); in HiTraceChainCreateSpan()
/ohos5.0/base/security/crypto_framework/frameworks/crypto_operation/
H A Dsm2_crypto_util.c78 if ((spec->hashData.data == NULL) || (spec->hashData.len == 0)) { in CheckSm2CipherTextSpec()
86 if (spec->hashData.len != HCF_SM2_C3_LEN) { in CheckSm2CipherTextSpec()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/sysinfo/src/
H A Dhks_get_udid.c53 struct HksBlob hashData = { HKS_HARDWARE_UDID_LEN, devUdid }; in HksGetHardwareUdid() local
54 ret = ComputeHash(devUdidString, sizeof(devUdidString), &hashData); in HksGetHardwareUdid()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_sm2_crypto_util.cpp89 tempSpec->hashData = *hashDataBlob; in GetSm2CipherTextSpecFromNapiValue()
176 if (spec->hashData.data == nullptr || spec->hashData.len == 0) { in CheckSm2CipherTextSpec()
208 if (!BuildBlobNapiValue(env, &(spec->hashData), SM2_UTIL_PARAM_HASH_DATA.c_str(), instance)) { in BuildSm2CipherTextSpecToNapiValue()
/ohos5.0/docs/zh-cn/application-dev/security/UniversalKeystoreKit/
H A Dhuks-hmac-arkts.md40 let hashData: Uint8Array;
129 hashData = data.outData as Uint8Array;
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/algorithm_parameter/
H A Dsm2_crypto_params.h26 HcfBlob hashData; member
/ohos5.0/docs/en/application-dev/security/UniversalKeystoreKit/
H A Dhuks-hmac-arkts.md40 let hashData: Uint8Array;
129 hashData = data.outData as Uint8Array;
/ohos5.0/docs/zh-cn/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-sm2-ciphertext-conversion.md27hashData: new Uint8Array([87, 167, 167, 247, 88, 146, 203, 234, 83, 126, 117, 129, 52, 142, 82, 54…
H A Dcrypto-asym-encrypt-decrypt-spec.md186 - hashData:杂凑值,即C3。
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-sm2-ciphertext-conversion.md27hashData: new Uint8Array([87, 167, 167, 247, 88, 146, 203, 234, 83, 126, 117, 129, 52, 142, 82, 54…
H A Dcrypto-asym-encrypt-decrypt-spec.md184 - **hashData**: hash value, that is, **C3**.
/ohos5.0/base/security/crypto_framework/common/src/
H A Dasy_key_params.c481 HcfBlobDataFree(&(spec->hashData)); in DestroySm2CipherTextSpec()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-crypto-architecture-kit/
H A Djs-apis-cryptoFramework.md721 | hashData | Uint8Array | 是 | 是 | 杂凑值 |
725 > - hashData为使用SM3算法对明文数据运算得到的杂凑值,其长度固定为256位。
2770hashData: new Uint8Array([87,167,167,247,88,146,203,234,83,126,117,129,52,142,82,54,152,226,201,11…
/ohos5.0/docs/en/application-dev/reference/apis-crypto-architecture-kit/
H A Djs-apis-cryptoFramework.md721 | hashData | Uint8Array | Yes | Yes | Hash value.|
725 > - **hashData** is a value obtained by applying the SM3 algorithm to the plaintext. It has a fixed…
2772hashData: new Uint8Array([87,167,167,247,88,146,203,234,83,126,117,129,52,142,82,54,152,226,201,11…