Home
last modified time | relevance | path

Searched refs:nonceBuff (Results 1 - 4 of 4) sorted by relevance

/base/security/device_auth/services/identity_manager/src/
H A Didentity_p2p.c303 Uint8Buff nonceBuff = { nonceVal, PAKE_NONCE_LEN }; in GetSharedSecretByUrl() local
304 if (GetByteFromJson(in, FIELD_NONCE, nonceBuff.val, nonceBuff.length) != HC_SUCCESS) { in GetSharedSecretByUrl()
312 ret = GetLoaderInstance()->computeHkdf(&keyAliasParams, &nonceBuff, &keyInfo, &pskBuff); in GetSharedSecretByUrl()
H A Didentity_group.c795 Uint8Buff nonceBuff = { nonceVal, PAKE_NONCE_LEN }; in GetSharedSecretForP2pInPake() local
796 ret = GetByteFromJson(in, FIELD_NONCE, nonceBuff.val, nonceBuff.length); in GetSharedSecretForP2pInPake()
805 ret = GetLoaderInstance()->computeHkdf(&keyAliasParams, &nonceBuff, &keyInfo, &pskBuff); in GetSharedSecretForP2pInPake()
/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/
H A Dcredsmanager_fuzzer.cpp529 static int32_t GetNonceValue(Uint8Buff *nonceBuff) in GetNonceValue() argument
531 nonceBuff->val = reinterpret_cast<uint8_t *>(HcMalloc(PAKE_NONCE_LEN, 0)); in GetNonceValue()
532 if (nonceBuff->val == NULL) { in GetNonceValue()
536 nonceBuff->length = PAKE_NONCE_LEN; in GetNonceValue()
537 int32_t ret = GetLoaderInstance()->generateRandom(nonceBuff); in GetNonceValue()
540 FreeUint8Buff(nonceBuff); in GetNonceValue()
1726 Uint8Buff nonceBuff = { nullptr, 0 }; in CredsManagerTest61() local
1727 int32_t res = GetNonceValue(&nonceBuff); in CredsManagerTest61()
1728 AddByteToJson(json, FIELD_NONCE, nonceBuff.val, nonceBuff in CredsManagerTest61()
[all...]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
H A Dcreds_manager_test.cpp540 static int32_t GetNonceValue(Uint8Buff *nonceBuff) in GetNonceValue() argument
542 nonceBuff->val = (uint8_t *)HcMalloc(PAKE_NONCE_LEN, 0); in GetNonceValue()
543 if (nonceBuff->val == NULL) { in GetNonceValue()
547 nonceBuff->length = PAKE_NONCE_LEN; in GetNonceValue()
548 int32_t ret = GetLoaderInstance()->generateRandom(nonceBuff); in GetNonceValue()
551 FreeUint8Buff(nonceBuff); in GetNonceValue()
1862 Uint8Buff nonceBuff = { nullptr, 0 }; in HWTEST_F() local
1863 int32_t res = GetNonceValue(&nonceBuff); in HWTEST_F()
1865 AddByteToJson(json, FIELD_NONCE, nonceBuff.val, nonceBuff in HWTEST_F()
[all...]

Completed in 11 milliseconds