/base/security/device_auth/services/group_auth/src/session/auth_session/ |
D | auth_session_util.c | 66 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/ |
D | das_task_common.c | 250 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/ |
D | pake_v2_protocol_common.c | 81 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/ |
D | pake_v2_auth_task_common.c | 58 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/ |
D | sym_token_manager.c | 412 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()
|
D | asy_token_manager.c | 457 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/ |
D | iso_auth_task_common.c | 146 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/ |
D | iso_protocol_common.c | 258 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/ |
D | huks_adapter.c | 81 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/ |
D | alg_defs.h | 22 #define SHA256_LEN 32 macro
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/ |
D | huks_adapter.c | 93 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()
|
D | mbedtls_ec_adapter.c | 269 CHECK_LEN_EQUAL_RETURN(hash->length, SHA256_LEN, "hash->length"); in MbedtlsHashToPoint()
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_md_test.cpp | 41 constexpr uint32_t SHA256_LEN = 32; variable 298 EXPECT_EQ(len, SHA256_LEN);
|
D | crypto_mac_test.cpp | 43 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/ |
D | huks_adapter.c | 112 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/ |
D | group_operation_common.c | 1221 Uint8Buff infoHash = { NULL, SHA256_LEN }; in GetHashResult() 1223 infoHash.val = (uint8_t *)HcMalloc(SHA256_LEN, 0); in GetHashResult()
|
D | group_operation.c | 285 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/ |
D | identical_account_group.c | 72 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/ |
D | peer_to_peer_group.c | 78 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/ |
D | across_account_group.c | 71 int hashStrLen = SHA256_LEN * BYTE_TO_HEX_OPER_LENGTH + 1; in GenerateGroupId()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/ |
D | iso_task_common.c | 521 uint8_t hash[SHA256_LEN] = { 0 }; in AuthGeneratePskUsePin()
|