Home
last modified time | relevance | path

Searched refs:gSize (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/reference/apis-universal-keystore-kit/
H A D_o_h___huks___key_material_dsa.md26 | uint32_t [gSize](#gsize) | g值的长度。 |
32 ### gSize subsection
35 uint32_t OH_Huks_KeyMaterialDsa::gSize
/ohos5.0/docs/en/application-dev/reference/apis-universal-keystore-kit/
H A D_o_h___huks___key_material_dsa.md26 | uint32_t [gSize](#gsize) | Length of **g**. |
32 ### gSize subsection
35 uint32_t OH_Huks_KeyMaterialDsa::gSize
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A 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()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
H A 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()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
H A 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;
/ohos5.0/base/security/huks/utils/crypto_adapter/
H A 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()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_dsa_key.cpp120 …eyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize;
/ohos5.0/base/security/huks/interfaces/inner_api/huks_standard/main/include/
H A Dhks_type.h181 uint32_t gSize; member
/ohos5.0/base/security/huks/interfaces/kits/c/include/
H A Dnative_huks_type.h894 uint32_t gSize; member
/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/include/
H A Dhks_crypto_hal.h100 uint32_t gSize; member
/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/src/
H A Dhks_check_paramset.c579 (keyMaterial->gSize > MAX_KEY_SIZE)) { in CheckDsaKeyLen()
585 (keyMaterial->pSize == 0) || (keyMaterial->qSize == 0) || (keyMaterial->gSize == 0)) { in CheckDsaKeyLen()
596 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in CheckDsaKeyLen()
H A Dhks_crypto_adapter.c490 keyMaterial->qSize + keyMaterial->gSize; in FormatDsaKey()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_import_sign_verify_test.cpp409 material.gSize = sizeof(g_gData); in ConstructImportedDsaPriOrPairKey()
412 material.pSize + material.qSize + material.gSize; in ConstructImportedDsaPriOrPairKey()
H A Dhks_access_control_test_common.cpp802 material.gSize = params->gData->size; in ConstructDsaKeyPair()
805 material.pSize + material.qSize + material.gSize; in ConstructDsaKeyPair()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_inner_test.cpp408 keyMaterial->gSize = 1;
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
H A 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);