Searched refs:qSize (Results 1 – 13 of 13) sorted by relevance
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | openssl_dsa_helper.c | 99 q = BinToBN(key->data + offset, keyMaterial->qSize); in InitDsa() 100 offset += keyMaterial->qSize; in InitDsa() 276 uint32_t qSize = (uint32_t)BN_num_bytes(DSA_get0_q(dsa)); in X509ToDsaPublicKey() local 278 if ((ySize == 0) || (pSize == 0) || (qSize == 0) || (gSize == 0)) { in X509ToDsaPublicKey() 293 keyMaterial->qSize = qSize; in X509ToDsaPublicKey() 308 if (BN_bn2bin(DSA_get0_g(dsa), publicKey->data + offset + ySize + pSize + qSize) == 0) { in X509ToDsaPublicKey() 359 …keyMaterial->qSize = (keyByteLen > OPENSSL_DSA_KEY_LEN_DIVID) ? HKS_DIGEST_SHA256_LEN : HKS_DIGEST… in SaveDsaKeyToHksBlob() 385 if (BN_bn2bin(q, key->data + offset + (keyMaterial->qSize - (uint32_t)BN_num_bytes(q))) <= 0) { in SaveDsaKeyToHksBlob() 388 offset += keyMaterial->qSize; in SaveDsaKeyToHksBlob()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_dsa.c | 103 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->qSize) !… in InitDsaStructParameter() 108 BIGNUM *q = BN_bin2bn(buff, keyMaterial->qSize, NULL); in InitDsaStructParameter() 109 *offset += keyMaterial->qSize; in InitDsaStructParameter() 195 &keyMaterial->qSize, in DsaKeyMaterialParam() 229 ret = BN_bn2bin(q, rawMaterial + offset + (keyMaterial->qSize - (uint32_t)BN_num_bytes(q))); in DsaKeyMaterialData() 234 offset += keyMaterial->qSize; in DsaKeyMaterialData() 308 …ze = sizeof(struct KeyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + in HksOpensslGetDsaPubKey() 317 publickeyMaterial->qSize = keyMaterial->qSize; in HksOpensslGetDsaPubKey() 323 keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize) != EOK) { in HksOpensslGetDsaPubKey()
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 204 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in GetDsaPubKeyParam() 216 q->size = keyMaterial->qSize; in GetDsaPubKeyParam() 218 offset += keyMaterial->qSize; in GetDsaPubKeyParam() 560 uint32_t qSize = 0; in X509PublicKeyToDsa() local 565 GetDsaKeyInfo(dsa, &q, &qSize, DSA_get0_q) != HKS_SUCCESS || in X509PublicKeyToDsa() 570 uint32_t totalSize = sizeof(struct KeyMaterialDsa) + ySize + pSize + qSize + gSize; in X509PublicKeyToDsa() 586 keyMaterial->qSize = qSize; in X509PublicKeyToDsa() 592 …g, keyBuffer + sizeof(struct KeyMaterialDsa) + keyMaterial->xSize + ySize + pSize + qSize) == 0)) { in X509PublicKeyToDsa()
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_dsa_key.cpp | 120 …sizeof(KeyMaterialDsa) + keyMaterial->ySize + keyMaterial->pSize + keyMaterial->qSize + keyMateria…
|
/base/security/huks/interfaces/kits/c/include/ |
D | native_huks_type.h | 789 uint32_t qSize; member
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_import_sign_verify_test.cpp | 447 material.qSize = sizeof(g_qData); in ConstructImportedDsaPriOrPairKey() 451 material.pSize + material.qSize + material.gSize; in ConstructImportedDsaPriOrPairKey() 492 offset += material.qSize; in ConstructImportedDsaPriOrPairKey()
|
D | hks_access_control_test_common.cpp | 642 material.qSize = params->qData->size; in ConstructDsaKeyPair() 646 material.pSize + material.qSize + material.gSize; in ConstructDsaKeyPair() 685 offset += material.qSize; in ConstructDsaKeyPair()
|
/base/security/huks/frameworks/huks_standard/main/common/include/ |
D | hks_crypto_hal.h | 97 uint32_t qSize; member
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_check_paramset.c | 528 (keyMaterial->pSize > MAX_KEY_SIZE) || (keyMaterial->qSize > MAX_KEY_SIZE) || in CheckDsaKeyLen() 535 (keyMaterial->pSize == 0) || (keyMaterial->qSize == 0) || (keyMaterial->gSize == 0)) { in CheckDsaKeyLen() 546 keyMaterial->pSize + keyMaterial->qSize + keyMaterial->gSize; in CheckDsaKeyLen()
|
D | hks_crypto_adapter.c | 448 keyMaterial->qSize + keyMaterial->gSize; in FormatDsaKey()
|
/base/security/huks/interfaces/innerkits/huks_standard/main/include/ |
D | hks_type.h | 595 uint32_t qSize; member
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_inner_test.cpp | 403 keyMaterial->qSize = 1;
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_native_api_compatibility_test.cpp | 908 ASSERT_EQ(sizeof(keyMaterialDsa.qSize) == sizeof(uint32_t), true); 916 ASSERT_EQ(sizeof(hksKeyMaterialDsa.qSize) == sizeof(uint32_t), true);
|