Home
last modified time | relevance | path

Searched refs:nOrXSize (Results 1 – 10 of 10) sorted by relevance

/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_attest_utils.c105 uint32_t totalSize = spkiHeaderLen + info->nOrXSize + info->eOrYSize; in GetEcPublicKey()
116 (void)memcpy_s(p, totalSize - spkiHeaderLen, publicKey, info->nOrXSize); in GetEcPublicKey()
117 p += info->nOrXSize; in GetEcPublicKey()
118 …(void)memcpy_s(p, totalSize - spkiHeaderLen - info->nOrXSize, publicKey + info->nOrXSize, info->eO… in GetEcPublicKey()
133 struct HksAsn1Blob n = { ASN_1_TAG_TYPE_INT, info->nOrXSize, publicKey }; in ConstructKeySeq()
137 struct HksAsn1Blob e = { ASN_1_TAG_TYPE_INT, info->eOrYSize, publicKey + info->nOrXSize }; in ConstructKeySeq()
202 struct HksAsn1Blob spkiBlob = { ASN_1_TAG_TYPE_BIT_STR, info->nOrXSize, publicKey }; in GetX25519PublicKey()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_lite.c250 if ((publicKey->size - offset) < publicKeyInfo->nOrXSize) { in TranslateToX509PublicKey()
255 struct HksBlob material1 = { publicKeyInfo->nOrXSize, publicKey->data + offset }; in TranslateToX509PublicKey()
256 offset += publicKeyInfo->nOrXSize; in TranslateToX509PublicKey()
319 pubKeyInfo->nOrXSize = nSize; in X509PublicKeyToRsa()
380 pubKeyInfo->nOrXSize = xSize; in X509PublicKeyToEcc()
Dhks_client_service_adapter_common.c67 curve25519Key->nOrXSize = key->size; /* curve25519 public key */ in TranslateToInnerCurve25519Format()
Dhks_client_service_adapter.c383 if ((publicKey->size - offset) < publicKeyInfo->nOrXSize) { in TranslateToX509PublicKey()
388 struct HksBlob material1 = { publicKeyInfo->nOrXSize, publicKey->data + offset }; in TranslateToX509PublicKey()
389 offset += publicKeyInfo->nOrXSize; in TranslateToX509PublicKey()
450 pubKeyInfo->nOrXSize = (uint32_t)nSize; in X509PublicKeyToRsa()
502 pubKeyInfo->nOrXSize = xSize; in EcKeyToPublicKey()
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_type.h726 uint32_t nOrXSize; member
/base/security/huks/interfaces/innerkits/huks_standard/main/include/
Dhks_type.h568 uint32_t nOrXSize; member
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_rsa_helper.c151 pubKeyInfo->nOrXSize = nSize; in X509ToRsaPublicKey()
Dopenssl_ecc_helper.c505 pubKeyInfo->nOrXSize = xSize; in EcKeyToPublicKey()
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_native_api_compatibility_test.cpp839 ASSERT_EQ(sizeof(pubKeyInfo.nOrXSize) == sizeof(uint32_t), true);
845 ASSERT_EQ(sizeof(hksPubKeyInfo.nOrXSize) == sizeof(uint32_t), true);
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_client_service.c582 curve25519Key->nOrXSize = key->size; /* curve25519 public key */ in TranslateToInnerCurve25519Format()