Searched refs:PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/ |
H A D | hks_chipset_platform_key_hardcoded.c | 30 static const uint8_t PLATFORM_KEY_PLATFORM_PUB_KEY[PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE] = { 38 …FULL_PLATFORM_PUBLIC_KEY_SIZE = sizeof(struct KeyMaterialEcc) + PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, 92 PLATFORM_KEY_PLATFORM_PUB_KEY, PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); in MallocFullPlatformPrivateKey() 94 … ret = memcpy_s(privateKey->data + sizeof(privateKeyMaterial) + PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, in MallocFullPlatformPrivateKey() 95 privateKey->size - sizeof(privateKeyMaterial) - PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, in MallocFullPlatformPrivateKey() 140 if (CheckBlob(pubKey) != HKS_SUCCESS || pubKey->size != PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE) { in HksChipsetPlatformDerivePubKey() 144 (void)memcpy_s(pubKey->data, PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, in HksChipsetPlatformDerivePubKey() 145 PLATFORM_KEY_PLATFORM_PUB_KEY, PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); in HksChipsetPlatformDerivePubKey()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_chipset_platform_encrypt_test.cpp | 237 EXPECT_EQ(rawPk.size(), PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); in ConvertRawEcPubKeyToX509Key() 271 rawPubKey.resize(PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); in ExportX509ChipsetPlatformPubKey() 273 … HksBlob publicKeyBlob = { .size = PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, .data = rawPubKey.data() }; in ExportX509ChipsetPlatformPubKey() 313 resTmpPk.begin() + tmpPk.size - PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE, in GenerateTmpKeyPairAndExportPublicKey() 452 EXPECT_EQ(rawPubKey.size(), PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); in Encrypt() 660 std::vector<uint8_t> pubKey = std::vector<uint8_t>(PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); 664 std::vector<uint8_t> allZero(PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE); 665 EXPECT_NE(memcmp(pubKey.data(), allZero.data(), PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE), 0); 692 std::vector<uint8_t> pubKey(PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE + 1); 709 std::vector<uint8_t> pubKey = std::vector<uint8_t>(PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE);
|
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/include/ |
H A D | hks_chipset_platform_decrypt.h | 34 PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE = PLATFORM_KEY_PLATFORM_PRI_KEY_SIZE * 2, enumerator
|
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
H A D | hks_chipset_platform_decrypt.c | 113 peerPkParam->blob.size != PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE) { in DoGenEcdhSharedKey() 269 …f (salt->size != PLATFORM_KEY_SALT_SIZE || publicKey->size != PLATFORM_KEY_PLATFORM_PUB_KEY_SIZE || in HuksCoreExportChipsetPlatformPublicKey()
|