Home
last modified time | relevance | path

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/
Dopenssl_dsa_helper.c102 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/
Dhks_openssl_dsa.c110 …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/
Dhks_check_paramset_test.cpp384 .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/
Dhks_client_service_adapter.c217 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/
Dhks_crypto_hal_dsa_key.cpp120 …eyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize;
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_type.h869 uint32_t gSize; member
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_crypto_hal.h100 uint32_t gSize; member
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c571 (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()
Dhks_crypto_adapter.c490 keyMaterial->qSize + keyMaterial->gSize; in FormatDsaKey()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_inner_test.cpp408 keyMaterial->gSize = 1;
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_sign_verify_test.cpp408 material.gSize = sizeof(g_gData); in ConstructImportedDsaPriOrPairKey()
411 material.pSize + material.qSize + material.gSize; in ConstructImportedDsaPriOrPairKey()
Dhks_access_control_test_common.cpp801 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/
Dhks_native_api_compatibility_test.cpp902 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/
Dhks_type.h767 uint32_t gSize; member