Home
last modified time | relevance | path

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

/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_check_paramset_test.cpp382 .xSize = MAX_KEY_SIZE + 1,
383 .ySize = MAX_KEY_SIZE + 1,
384 .pSize = MAX_KEY_SIZE + 1,
385 .qSize = MAX_KEY_SIZE + 1,
386 .gSize = MAX_KEY_SIZE + 1,
405 materialDsa.xSize = MAX_KEY_SIZE;
409 materialDsa.ySize = MAX_KEY_SIZE;
413 materialDsa.pSize = MAX_KEY_SIZE;
417 materialDsa.qSize = MAX_KEY_SIZE;
421 materialDsa.gSize = MAX_KEY_SIZE;
[all …]
/base/security/huks/interfaces/inner_api/huks_standard/main/src/
Dhks_api_adapter.c90 uint8_t *buffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksExportPublicKeyAdapter()
92 (void)memset_s(buffer, MAX_KEY_SIZE, 0, MAX_KEY_SIZE); in HksExportPublicKeyAdapter()
93 struct HksBlob publicKey = { MAX_KEY_SIZE, buffer }; in HksExportPublicKeyAdapter()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_upgrade_helper.c117 if (keySize > MAX_KEY_SIZE) { in HksDeleteOldKeyForSmallToService()
176 newKey.data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksChangeKeyOwner()
181 newKey.size = MAX_KEY_SIZE; in HksChangeKeyOwner()
Dhks_client_service_util.c90 if (size > MAX_KEY_SIZE) { in GetKeyFileData()
Dhks_client_service.c76 if (size >= MAX_KEY_SIZE) { in CheckKeyCondition()
119 newKey.data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in CheckAndUpgradeKeyIfNeed()
124 newKey.size = MAX_KEY_SIZE; in CheckAndUpgradeKeyIfNeed()
734 uint8_t *keyOutBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksServiceGenerateKey()
742 struct HksBlob output = { MAX_KEY_SIZE, keyOutBuffer }; in HksServiceGenerateKey()
1021 uint8_t *keyOutBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksServiceImportKey()
1027 struct HksBlob keyOut = { MAX_KEY_SIZE, keyOutBuffer }; in HksServiceImportKey()
1091 uint8_t *keyOutBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksServiceImportWrappedKey()
1096 struct HksBlob keyOut = { MAX_KEY_SIZE, keyOutBuffer }; in HksServiceImportWrappedKey()
1485 outSize = MAX_KEY_SIZE; in HksServiceFinish()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_wrapped_test_common.cpp240 uint8_t plainKeyCipherBuffer[MAX_KEY_SIZE] = {0}; in HksImportWrappedKeyTestCommonCase()
241 struct HksBlob plainCipherText = { MAX_KEY_SIZE, plainKeyCipherBuffer }; in HksImportWrappedKeyTestCommonCase()
242 uint8_t kekCipherTextBuffer[MAX_KEY_SIZE] = {0}; in HksImportWrappedKeyTestCommonCase()
243 struct HksBlob kekCipherText = { MAX_KEY_SIZE, kekCipherTextBuffer }; in HksImportWrappedKeyTestCommonCase()
Dhks_access_control_secure_sign_test.cpp619 uint8_t *keyBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in BuildImportKeyParamsForRsa()
624 importParams->importKey.size = MAX_KEY_SIZE; in BuildImportKeyParamsForRsa()
642 uint8_t *keyBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in BuildImportKeyParamsForDSA()
647 importParams->importKey.size = MAX_KEY_SIZE; in BuildImportKeyParamsForDSA()
688 uint8_t *keyBuffer = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in BuildImportKeyTestParams()
693 importParams->importKey.size = MAX_KEY_SIZE; in BuildImportKeyTestParams()
/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/
Dhks_client_service_adapter_common_test.cpp75 key.size = MAX_KEY_SIZE + 1;
/base/security/huks/interfaces/kits/napi/src/v9/
Dhuks_napi_export_key_item.cpp104 context->key->data = static_cast<uint8_t *>(HksMalloc(MAX_KEY_SIZE)); in PrePareExportKeyContextBuffer()
108 context->key->size = MAX_KEY_SIZE; in PrePareExportKeyContextBuffer()
/base/security/huks/interfaces/kits/napi/src/v8/
Dhuks_napi_export_key.cpp112 context->key->data = static_cast<uint8_t *>(HksMalloc(MAX_KEY_SIZE)); in PrePareExportKeyContextBuffer()
116 context->key->size = MAX_KEY_SIZE; in PrePareExportKeyContextBuffer()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c35 if ((key->size == 0) || (key->size > MAX_KEY_SIZE)) { in CopyToInnerKey()
Dhks_client_service_adapter_lite.c47 uint8_t *tmpBuf = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in PkCtxToX509()
52 int32_t x509Size = mbedtls_pk_write_pubkey_der(ctx, tmpBuf, MAX_KEY_SIZE); in PkCtxToX509()
67 if (memcpy_s(x509KeyData, x509Size, tmpBuf + MAX_KEY_SIZE - x509Size, x509Size) != EOK) { in PkCtxToX509()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c546 if ((keyMaterial->xSize > MAX_KEY_SIZE) || (keyMaterial->ySize > MAX_KEY_SIZE) || in CheckDsaKeyLen()
547 (keyMaterial->pSize > MAX_KEY_SIZE) || (keyMaterial->qSize > MAX_KEY_SIZE) || in CheckDsaKeyLen()
548 (keyMaterial->gSize > MAX_KEY_SIZE)) { in CheckDsaKeyLen()
Dhks_crypto_adapter.c334 if (keyMaterial->pubKeySize > MAX_KEY_SIZE || keyMaterial->priKeySize > MAX_KEY_SIZE) { in CheckFormatCurve25519Key()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_keyblob_test.cpp182 struct HksBlob keyBlob = { .size = MAX_KEY_SIZE, .data = nullptr };
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_service.c38 #define MAX_KEY_SIZE 2048 macro
70 keyOut.data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksIpcServiceGenerateKey()
76 keyOut.size = MAX_KEY_SIZE; in HksIpcServiceGenerateKey()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_teec.c317 uint8_t keyInBuffer[MAX_KEY_SIZE] = {0}; in HksTeeGenerateKey()
318 struct HksBlob keyInBlob = { MAX_KEY_SIZE, keyInBuffer }; in HksTeeGenerateKey()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h56 #define MAX_KEY_SIZE 2048 macro
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keyblob_lite.c303 if (key->size > MAX_KEY_SIZE) { in HksGenerateKeyNode()
Dhks_sm_import_wrap_key.c94 if (dataSize > MAX_KEY_SIZE) { in GetDataLenFromWrappedData()
Dhks_keyblob.c416 if (key->size > MAX_KEY_SIZE) { in HksGenerateKeyNode()
Dhks_core_service_three_stage.c836 agreeTemp->size = MAX_KEY_SIZE; in ConstructAgreeBlob()
837 agreeTemp->data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in ConstructAgreeBlob()
Dhks_core_service.c781 if ((keyMaterialSize == 0) || (keyMaterialSize > MAX_KEY_SIZE)) { in ParseImportedKeyDecryptParams()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Drsa_asy_key_generator_openssl.c38 #define MAX_KEY_SIZE 8192 macro