Home
last modified time | relevance | path

Searched refs:SHA256_LEN (Results 1 – 21 of 21) sorted by relevance

/base/security/device_auth/services/group_auth/src/session/auth_session/
Dauth_session_util.c66 Uint8Buff infoHash = {NULL, SHA256_LEN}; in GetInfoHash()
68 infoHash.val = (uint8_t *)HcMalloc(SHA256_LEN, 0); in GetInfoHash()
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_task_common.c250 if (outKeyAlias->length != SHA256_LEN) { in CombineKeyAliasForIso()
265 Uint8Buff keyAliasHash = { NULL, SHA256_LEN }; in CombineKeyAliasForPake()
267 if (outKeyAlias->length != SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH) { in CombineKeyAliasForPake()
322 Uint8Buff serviceId = { NULL, SHA256_LEN }; in GenerateKeyAlias()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/
Dpake_v2_protocol_common.c81 params->sharedSecret.length = SHA256_LEN; in AllocDefaultParams()
276 Uint8Buff sidSelf = { NULL, SHA256_LEN }; in ComputeSid()
277 Uint8Buff sidPeer = { NULL, SHA256_LEN }; in ComputeSid()
385 …Uint8Buff sid = { NULL, SHA256_LEN * 2 }; // sid is composed of client sid and server sid, so need… in GenerateSharedSecret()
546 uint8_t tmpKcfDataVal[SHA256_LEN] = { 0 }; in VerifyProof()
547 Uint8Buff tmpKcfData = { tmpKcfDataVal, SHA256_LEN }; in VerifyProof()
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.c58 uint8_t *serverPkAlias = (uint8_t *)HcMalloc(SHA256_LEN, 0); in VerifyPkSignPeer()
65 .length = SHA256_LEN in VerifyPkSignPeer()
94 uint8_t *priAliasVal = (uint8_t *)HcMalloc(SHA256_LEN, 0); in GenerateEcdhSharedKey()
101 .length = SHA256_LEN in GenerateEcdhSharedKey()
/base/security/device_auth/services/authenticators/src/account_related/creds_manager/
Dsym_token_manager.c412 uint8_t *keyAliasVal = (uint8_t *)HcMalloc(SHA256_LEN, 0); in ImportSymTokenToKeyManager()
419 .length = SHA256_LEN in ImportSymTokenToKeyManager()
511 uint8_t *keyAliasVal = (uint8_t *)HcMalloc(SHA256_LEN, 0); in DeleteSymTokenFromKeyManager()
518 .length = SHA256_LEN in DeleteSymTokenFromKeyManager()
Dasy_token_manager.c457 uint8_t *keyAliasValue = (uint8_t *)HcMalloc(SHA256_LEN, 0); in DoImportServerPkAndVerify()
464 .length = SHA256_LEN in DoImportServerPkAndVerify()
870 uint8_t *keyAliasValue = (uint8_t *)HcMalloc(SHA256_LEN, 0); in CheckDevicePk()
878 .length = SHA256_LEN in CheckDevicePk()
1019 uint8_t *keyAliasValue = (uint8_t *)HcMalloc(SHA256_LEN, 0); in GetRegisterProof()
1026 .length = SHA256_LEN in GetRegisterProof()
1070 uint8_t *keyAliasValue = (uint8_t *)HcMalloc(SHA256_LEN, 0); in DeleteKeyPair()
1077 .length = SHA256_LEN in DeleteKeyPair()
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/
Diso_auth_task_common.c146 uint8_t keyAliasVal[SHA256_LEN] = { 0 }; in GenerateAuthTokenForAccessory()
147 Uint8Buff keyAlias = { keyAliasVal, SHA256_LEN }; in GenerateAuthTokenForAccessory()
173 int32_t res = InitSingleParam(authTokenAlias, SHA256_LEN); in GenerateTokenAliasForController()
/base/security/device_auth/services/protocol/src/iso_protocol/
Diso_protocol_common.c258 uint8_t hmacPeer[SHA256_LEN] = { 0 }; in IsoClientCheckAndGenToken()
293 uint8_t hmacSelf[SHA256_LEN] = { 0 }; in IsoClientGenSessionKey()
353 uint8_t hmacPeer[SHA256_LEN] = { 0 }; in IsoServerGenSessionKeyAndCalToken()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dhuks_adapter.c81 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in Sha256()
99 if (ret != HKS_SUCCESS || hashBlob.size != SHA256_LEN) { in Sha256()
415 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in HashToPoint()
418 CHECK_LEN_EQUAL_RETURN(outEcPoint->length, SHA256_LEN, "outEcPoint->length"); in HashToPoint()
839 messageHash.length = SHA256_LEN; in Sign()
912 messageHash.length = SHA256_LEN; in Verify()
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
Dalg_defs.h22 #define SHA256_LEN 32 macro
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
Dhuks_adapter.c93 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in Sha256()
111 if (ret != HKS_SUCCESS || hashBlob.size != SHA256_LEN) { in Sha256()
427 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in HashToPoint()
440 CHECK_LEN_EQUAL_RETURN(outEcPoint->length, SHA256_LEN, "outEcPoint->length"); in HashToPoint()
445 if (ret != HAL_SUCCESS || pointBlob.size != SHA256_LEN) { in HashToPoint()
967 messageHash.length = SHA256_LEN; in Sign()
1040 messageHash.length = SHA256_LEN; in Verify()
Dmbedtls_ec_adapter.c269 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in MbedtlsHashToPoint()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_md_test.cpp41 constexpr uint32_t SHA256_LEN = 32; variable
298 EXPECT_EQ(len, SHA256_LEN);
Dcrypto_mac_test.cpp43 constexpr uint32_t SHA256_LEN = 32; variable
502 EXPECT_EQ(len, SHA256_LEN);
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/
Dhuks_adapter.c112 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in Sha256()
130 if (ret != HKS_SUCCESS || hashBlob.size != SHA256_LEN) { in Sha256()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c1221 Uint8Buff infoHash = { NULL, SHA256_LEN }; in GetHashResult()
1223 infoHash.val = (uint8_t *)HcMalloc(SHA256_LEN, 0); in GetHashResult()
Dgroup_operation.c285 char returnPkHexStr[SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH + 1] = { 0 }; in GeneratePkInfo()
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c72 int hashStrLen = SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH + 1; in GenerateGroupId()
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c78 int hashStrLen = SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH + 1; in GenerateGroupId()
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c71 int hashStrLen = SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH + 1; in GenerateGroupId()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/
Diso_task_common.c521 uint8_t hash[SHA256_LEN] = { 0 }; in AuthGeneratePskUsePin()