Searched refs:gSize (Results 1 – 14 of 14) sorted by relevance
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | openssl_dsa_helper.c | 102 g = BinToBN(key->data + offset, keyMaterial->gSize); in InitDsa() 277 uint32_t gSize = (uint32_t)BN_num_bytes(DSA_get0_g(dsa)); in X509ToDsaPublicKey() local 278 if ((ySize == 0) || (pSize == 0) || (qSize == 0) || (gSize == 0)) { in X509ToDsaPublicKey() 294 keyMaterial->gSize = gSize; in X509ToDsaPublicKey() 361 keyMaterial->gSize = keyByteLen; in SaveDsaKeyToHksBlob() 390 if (BN_bn2bin(g, key->data + offset + (keyMaterial->gSize - (uint32_t)BN_num_bytes(g))) <= 0) { in SaveDsaKeyToHksBlob()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_dsa.c | 110 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->gSize) !… in InitDsaStructParameter() 117 BIGNUM *g = BN_bin2bn(buff, keyMaterial->gSize, NULL); in InitDsaStructParameter() 196 &keyMaterial->gSize); in DsaKeyMaterialParam() 235 ret = BN_bn2bin(g, rawMaterial + offset + (keyMaterial->gSize - (uint32_t)BN_num_bytes(g))); in DsaKeyMaterialData() 312 keyMaterial->gSize; in HksOpensslGetDsaPubKey() 321 publickeyMaterial->gSize = keyMaterial->gSize; in HksOpensslGetDsaPubKey() 326 keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize) != EOK) { in HksOpensslGetDsaPubKey()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_check_paramset_test.cpp | 384 .gSize = MAX_KEY_SIZE + 1, 419 materialDsa.gSize = MAX_KEY_SIZE; 439 .gSize = MAX_KEY_SIZE, 465 materialDsa.gSize = 0; 469 materialDsa.gSize = MAX_KEY_SIZE;
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 217 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in GetDsaPubKeyParam() 232 g->size = keyMaterial->gSize; in GetDsaPubKeyParam() 650 uint32_t gSize = 0; in X509PublicKeyToDsa() local 655 GetDsaKeyInfo(dsa, &g, &gSize, DSA_get0_g) != HKS_SUCCESS) { in X509PublicKeyToDsa() 659 uint32_t totalSize = sizeof(struct KeyMaterialDsa) + ySize + pSize + qSize + gSize; in X509PublicKeyToDsa() 676 keyMaterial->gSize = gSize; in X509PublicKeyToDsa()
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_dsa_key.cpp | 120 …eyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize;
|
/base/security/huks/interfaces/kits/c/include/ |
D | native_huks_type.h | 869 uint32_t gSize; member
|
/base/security/huks/frameworks/huks_standard/main/common/include/ |
D | hks_crypto_hal.h | 100 uint32_t gSize; member
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_check_paramset.c | 571 (keyMaterial->gSize > MAX_KEY_SIZE)) { in CheckDsaKeyLen() 577 (keyMaterial->pSize == 0) || (keyMaterial->qSize == 0) || (keyMaterial->gSize == 0)) { in CheckDsaKeyLen() 588 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in CheckDsaKeyLen()
|
D | hks_crypto_adapter.c | 490 keyMaterial->qSize + keyMaterial->gSize; in FormatDsaKey()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_inner_test.cpp | 408 keyMaterial->gSize = 1;
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_import_sign_verify_test.cpp | 408 material.gSize = sizeof(g_gData); in ConstructImportedDsaPriOrPairKey() 411 material.pSize + material.qSize + material.gSize; in ConstructImportedDsaPriOrPairKey()
|
D | hks_access_control_test_common.cpp | 801 material.gSize = params->gData->size; in ConstructDsaKeyPair() 804 material.pSize + material.qSize + material.gSize; in ConstructDsaKeyPair()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_native_api_compatibility_test.cpp | 902 ASSERT_EQ(sizeof(keyMaterialDsa.gSize) == sizeof(uint32_t), true); 910 ASSERT_EQ(sizeof(hksKeyMaterialDsa.gSize) == sizeof(uint32_t), true);
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 767 uint32_t gSize; member
|