Home
last modified time | relevance | path

Searched defs:pubKey (Results 1 – 25 of 74) sorted by relevance

123

/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecdh.c43 const struct HksBlob *pubKey, mbedtls_ecdh_context *ctx) in EccKeyMaterialToCtx()
55 const struct HksBlob *pubKey, const struct HksKeySpec *spec, struct HksBlob *sharedKey) in HksMbedtlsEcdh()
Dhks_crypto_ed25519.c42 static int32_t SaveEd25519KeyMaterial(const struct HksBlob *pubKey, const struct HksBlob *priKey, in SaveEd25519KeyMaterial()
90 uint8_t pubKey[ED25519_PUBLIC_KEY_LEN] = {0}; in HksEd25519GenerateKey() local
Dhks_mbedtls_x25519.c152 …atic int32_t X25519CheckKeyMaterialSize(const struct HksBlob *priKey, const struct HksBlob *pubKey) in X25519CheckKeyMaterialSize()
261 static int32_t X25519KeyMaterialToPub(const struct HksBlob *pubKey, mbedtls_ecp_point *pub) in X25519KeyMaterialToPub()
311 const struct HksBlob *pubKey, const struct HksKeySpec *spec, struct HksBlob *sharedKey) in HksMbedtlsX25519KeyAgreement()
792 const struct HksBlob *pubKey, const struct HksKeySpec *spec, struct HksBlob *sharedKey) in HksMbedtlsEd25519KeyAgreement()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_dh.c75 BIGNUM *pubKey = BN_bin2bn(key->data + offset, keyMaterial->pubKeySize, NULL); in InitDhStruct() local
91 const BIGNUM *pubKey = NULL; in DhSaveKeyMaterial() local
166 int32_t HksOpensslDhAgreeKey(const struct HksBlob *nativeKey, const struct HksBlob *pubKey, in HksOpensslDhAgreeKey()
Dhks_openssl_curve25519.c114 const struct HksBlob *pubKey) in ImportX25519EvpKey()
141 int32_t HksOpensslX25519AgreeKey(const struct HksBlob *nativeKey, const struct HksBlob *pubKey, in HksOpensslX25519AgreeKey()
198 int32_t HksOpensslEd25519AgreeKey(const struct HksBlob *nativeKey, const struct HksBlob *pubKey, in HksOpensslEd25519AgreeKey()
Dhks_openssl_ecc.c366 static int32_t GetPeerKey(const struct HksBlob *pubKey, EVP_PKEY *key) in GetPeerKey()
402 static int32_t AgreeKeyEcdh(const struct HksBlob *nativeKey, const struct HksBlob *pubKey, struct H… in AgreeKeyEcdh()
444 int32_t HksOpensslEcdhAgreeKey(const struct HksBlob *nativeKey, const struct HksBlob *pubKey, in HksOpensslEcdhAgreeKey()
Dhks_openssl_ed25519tox25519.c156 uint8_t pubKey[P_BYTES] = {0}; in Curve25519Initialize() local
280 static int32_t FillPubKeyByZero(uint8_t *pubKey, uint32_t *pubKeySize) in FillPubKeyByZero()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_dh_helper.c48 const BIGNUM *pubKey = NULL; in DhSaveKeyMaterial() local
125 BIGNUM *pubKey = BN_bin2bn(key->data + offset, keyMaterial->pubKeySize, NULL); in InitDhStruct() local
144 …const int keyLen, const struct HksBlob *nativeKey, const struct HksBlob *pubKey, struct HksBlob *s… in DhAgreeKey()
236 const BIGNUM *pubKey = DH_get0_pub_key(dh); in DhX509ToHksBlob() local
/base/security/crypto_framework/interfaces/innerkits/key/
Dkey_pair.h29 HcfPubKey *pubKey; member
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_pub_key.cpp27 NapiPubKey::NapiPubKey(HcfPubKey *pubKey) : NapiKey(reinterpret_cast<HcfKey *>(pubKey)) {} in NapiPubKey()
78 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncoded() local
Dnapi_key_pair.cpp61 napi_value pubKey = napiPubKey->ConvertToJsPubKey(env); in ConvertToJsKeyPair() local
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Decc_asy_key_generator_openssl.c57 const EC_POINT *pubKey = EC_KEY_get0_public_key(ecKey); in NewEcKeyPairByOpenssl() local
317 static HcfResult CreateEccPubKey(int32_t curveId, EC_POINT *pubKey, HcfOpensslEccPubKey **returnObj) in CreateEccPubKey()
356 static HcfResult CreateEccKeyPair(HcfOpensslEccPubKey *pubKey, HcfOpensslEccPriKey *priKey, in CreateEccKeyPair()
382 const EC_POINT *pubKey = EC_KEY_get0_public_key(ecKey); in ConvertEcPubKeyByOpenssl() local
455 HcfOpensslEccPubKey *pubKey = NULL; in EngineConvertEccKey() local
502 HcfOpensslEccPubKey *pubKey = NULL; in EngineGenerateKeyPair() local
Drsa_asy_key_generator_openssl.c411 static HcfResult DuplicatePkAndSkFromRSA(RSA *rsa, RSA **pubKey, RSA **priKey) in DuplicatePkAndSkFromRSA()
436 RSA *pubKey = NULL, *priKey = NULL; in PackKeyPair() local
571 HcfOpensslRsaPubKey *pubKey = NULL; in ConvertPubKey() local
618 HcfOpensslRsaPubKey *pubKey = NULL; in EngineConvertKey() local
/base/security/huks/test/fuzz_test/hksimportkey_fuzzer/
Dhksimportkey_fuzzer.cpp42 struct HksBlob pubKey = { BLOB_SIZE, static_cast<uint8_t *>(myData + BLOB_SIZE) }; in DoSomethingInterestingWithMyAPI() local
/base/security/huks/test/fuzz_test/hksexportpublickey_fuzzer/
Dhksexportpublickey_fuzzer.cpp42 struct HksBlob pubKey = { BLOB_SIZE, static_cast<uint8_t *>(myData + BLOB_SIZE) }; in DoSomethingInterestingWithMyAPI() local
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_ed25519_sign_verify_test.cpp123 uint8_t pubKey[HKS_CURVE25519_KEY_SIZE_256] = {0}; in HksEd25519SignVerifyTestNormalCase() local
180 uint8_t pubKey[HKS_CURVE25519_KEY_SIZE_256] = {0}; variable
246 uint8_t pubKey[HKS_CURVE25519_KEY_SIZE_256] = {0}; variable
Dhks_ecc_sign_verify_test_common.cpp88 uint8_t pubKey[HKS_ECC_KEY_SIZE_521] = {0}; in HksEccSignVerifyTestNormalCase() local
/base/update/updater/services/package/pkg_verify/
Dopenssl_util.cpp141 EVP_PKEY *pubKey = X509_get_pubkey(issuerCert); in VerifyX509CertByIssuerCert() local
150 int32_t VerifyDigestByPubKey(EVP_PKEY *pubKey, const int nid, const std::vector<uint8_t> &digestDat… in VerifyDigestByPubKey()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_safe_cipher_key_test.cpp91 uint8_t pubKey[32] = {0}; variable
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
Dhks_safe_cipher_key_test.cpp91 uint8_t pubKey[32] = {0}; variable
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dmbedtls_ec_adapter.c76 static void SwapEndian(uint8_t *pubKey, int len) in SwapEndian()
284 int32_t MbedtlsAgreeSharedSecret(const KeyBuff *priKey, const KeyBuff *pubKey, Uint8Buff *sharedKey) in MbedtlsAgreeSharedSecret()
/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/
Dasykeygenerator_fuzzer.cpp89 HcfPubKey *pubKey = dupKeyPair->pubKey; in TestRsaKey() local
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_dsa_sign.cpp118 … struct HksBlob pubKey = { .size = PUB_KEY_SIZE, .data = (uint8_t *)HksMalloc(PUB_KEY_SIZE) }; in RunTestCase() local
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.cpp135 EVP_PKEY *pubKey = X509_get_pubkey(rcert); in VerifyDigest() local
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
Dhks_safe_cipher_key_test.c133 uint8_t pubKey[32] = {0}; in LITE_TEST_CASE() local

123