/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_check_paramset_test.cpp | 382 .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/ |
D | hks_api_adapter.c | 90 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/ |
D | hks_upgrade_helper.c | 117 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()
|
D | hks_client_service_util.c | 90 if (size > MAX_KEY_SIZE) { in GetKeyFileData()
|
D | hks_client_service.c | 76 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/ |
D | hks_import_wrapped_test_common.cpp | 240 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()
|
D | hks_access_control_secure_sign_test.cpp | 619 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/ |
D | hks_client_service_adapter_common_test.cpp | 75 key.size = MAX_KEY_SIZE + 1;
|
/base/security/huks/interfaces/kits/napi/src/v9/ |
D | huks_napi_export_key_item.cpp | 104 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/ |
D | huks_napi_export_key.cpp | 112 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/ |
D | hks_client_service_adapter_common.c | 35 if ((key->size == 0) || (key->size > MAX_KEY_SIZE)) { in CopyToInnerKey()
|
D | hks_client_service_adapter_lite.c | 47 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/ |
D | hks_check_paramset.c | 546 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()
|
D | hks_crypto_adapter.c | 334 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/ |
D | hks_keyblob_test.cpp | 182 struct HksBlob keyBlob = { .size = MAX_KEY_SIZE, .data = nullptr };
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_ipc_service.c | 38 #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/ |
D | hks_teec.c | 317 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/ |
D | hks_type.h | 56 #define MAX_KEY_SIZE 2048 macro
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_keyblob_lite.c | 303 if (key->size > MAX_KEY_SIZE) { in HksGenerateKeyNode()
|
D | hks_sm_import_wrap_key.c | 94 if (dataSize > MAX_KEY_SIZE) { in GetDataLenFromWrappedData()
|
D | hks_keyblob.c | 416 if (key->size > MAX_KEY_SIZE) { in HksGenerateKeyNode()
|
D | hks_core_service_three_stage.c | 836 agreeTemp->size = MAX_KEY_SIZE; in ConstructAgreeBlob() 837 agreeTemp->data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in ConstructAgreeBlob()
|
D | hks_core_service.c | 781 if ((keyMaterialSize == 0) || (keyMaterialSize > MAX_KEY_SIZE)) { in ParseImportedKeyDecryptParams()
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | rsa_asy_key_generator_openssl.c | 38 #define MAX_KEY_SIZE 8192 macro
|