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.cpp386 .gSize = MAX_KEY_SIZE + 1,
421 materialDsa.gSize = MAX_KEY_SIZE;
441 .gSize = MAX_KEY_SIZE,
467 materialDsa.gSize = 0;
471 materialDsa.gSize = MAX_KEY_SIZE;
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_dsa_key.cpp122 …eyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize;
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c328 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in GetDsaPubKeyParam()
343 g->size = keyMaterial->gSize; in GetDsaPubKeyParam()
761 uint32_t gSize = 0; in X509PublicKeyToDsa() local
766 GetDsaKeyInfo(dsa, &g, &gSize, DSA_get0_g) != HKS_SUCCESS) { in X509PublicKeyToDsa()
770 uint32_t totalSize = sizeof(struct KeyMaterialDsa) + ySize + pSize + qSize + gSize; in X509PublicKeyToDsa()
787 keyMaterial->gSize = gSize; in X509PublicKeyToDsa()
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_type.h815 uint32_t gSize; member
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_crypto_hal.h99 uint32_t gSize; member
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c548 (keyMaterial->gSize > MAX_KEY_SIZE)) { in CheckDsaKeyLen()
554 (keyMaterial->pSize == 0) || (keyMaterial->qSize == 0) || (keyMaterial->gSize == 0)) { in CheckDsaKeyLen()
565 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in CheckDsaKeyLen()
Dhks_crypto_adapter.c442 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.cpp481 material.gSize = sizeof(g_gData); in ConstructImportedDsaPriOrPairKey()
484 material.pSize + material.qSize + material.gSize; in ConstructImportedDsaPriOrPairKey()
Dhks_access_control_test_common.cpp795 material.gSize = params->gData->size; in ConstructDsaKeyPair()
798 material.pSize + material.qSize + material.gSize; in ConstructDsaKeyPair()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h723 uint32_t gSize; member
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_native_api_compatibility_test.cpp921 ASSERT_EQ(sizeof(keyMaterialDsa.gSize) == sizeof(uint32_t), true);
929 ASSERT_EQ(sizeof(hksKeyMaterialDsa.gSize) == sizeof(uint32_t), true);