/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_rsa_asy_key_pem_test.cpp | 807 HcfPubKey *pubkey = dupKeyPair->pubKey; in RsaAsyKeyPemTest3() local 809 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "PKCS1", &retStr); in RsaAsyKeyPemTest3() 815 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "X509", &retStr); in RsaAsyKeyPemTest3() 836 HcfPubKey *pubkey = dupKeyPair->pubKey; in RsaAsyKeyPemTest4() local 838 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "PKCS1", &retStr); in RsaAsyKeyPemTest4() 844 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "X50 in RsaAsyKeyPemTest4() 866 HcfPubKey *pubkey = dupKeyPair->pubKey; RsaAsyKeyPemTest5() local 910 HcfPubKey *pubkey = dupKeyPair->pubKey; RsaAsyKeyPemTest6() local 954 HcfPubKey *pubkey = dupKeyPair->pubKey; RsaAsyKeyPemTest7() local 998 HcfPubKey *pubkey = dupKeyPair->pubKey; RsaAsyKeyPemTest8() local 1216 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 1258 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 1332 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1365 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1398 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1431 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1464 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1497 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1538 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1592 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local [all...] |
H A D | crypto_rsa_asy_key_generator_test.cpp | 405 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 406 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr); in HWTEST_F() 407 EXPECT_NE(pubkey->base.getFormat((HcfKey *)pubkey), nullptr); in HWTEST_F() 408 EXPECT_NE(pubkey->base.base.getClass(), nullptr); in HWTEST_F() 409 EXPECT_NE(pubkey->base.base.destroy, nullptr); in HWTEST_F() 437 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 438 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullpt in HWTEST_F() 515 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 595 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 659 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 699 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 739 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 779 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 877 HcfPubKey *pubkey = dupKeyPair->pubKey; HWTEST_F() local 1136 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local [all...] |
H A D | crypto_rsa_verify_test.cpp | 308 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 313 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 333 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 338 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 357 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 362 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 364 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 381 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 396 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 418 HcfPubKey *pubkey in HWTEST_F() local 456 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 494 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 533 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 573 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 612 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 652 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 693 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 743 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 791 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 818 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 845 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 872 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 901 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 930 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 959 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 989 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1017 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local 1057 HcfPubKey *pubkey = keyPair->pubKey; HWTEST_F() local [all...] |
H A D | crypto_rsa_only_sign_and_verify_recover_test.cpp | 657 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 663 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 682 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 687 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 689 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 708 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 726 res = verify->init(verify, nullptr, pubkey); in HWTEST_F() 750 HcfPubKey *pubkey = keyPair->pubKey; in HWTEST_F() local 768 res = verify->init(verify, nullptr, pubkey); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | peerlookup.c | 11 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in pubkey_bucket() 17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket() 55 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in wg_pubkey_hashtable_lookup() 60 hlist_for_each_entry_rcu_bh(iter_peer, pubkey_bucket(table, pubkey), in wg_pubkey_hashtable_lookup() 62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup() 10 pubkey_bucket(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) pubkey_bucket() argument 54 wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) wg_pubkey_hashtable_lookup() argument
|
H A D | peerlookup.h | 31 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | peerlookup.c | 11 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in pubkey_bucket() 17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket() 55 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in wg_pubkey_hashtable_lookup() 60 hlist_for_each_entry_rcu_bh(iter_peer, pubkey_bucket(table, pubkey), in wg_pubkey_hashtable_lookup() 62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup() 10 pubkey_bucket(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) pubkey_bucket() argument 54 wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) wg_pubkey_hashtable_lookup() argument
|
H A D | peerlookup.h | 31 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
|
/base/global/i18n/frameworks/intl/src/ |
H A D | signature_verifier.cpp | 173 RSA* pubkey = RSA_new(); in VerifyFileSign() local 175 if (pubkey != nullptr && !signStr.empty() && !digestStr.empty()) { in VerifyFileSign() 177 if (PEM_read_bio_RSA_PUBKEY(bio, &pubkey, nullptr, nullptr) == nullptr) { in VerifyFileSign() 181 verify = VerifyRsa(pubkey, digestStr, signStr); in VerifyFileSign() 184 RSA_free(pubkey); in VerifyFileSign() 188 bool SignatureVerifier::VerifyRsa(RSA* pubkey, const std::string& digest, const std::string& sign) in VerifyRsa() argument 194 if (EVP_PKEY_set1_RSA(evpKey, pubkey) != 1) { in VerifyRsa()
|
/base/update/packaging_tools/ |
H A D | build_module_img.py | 79 def sign_img(device, pubkey, privkey, output): 93 "--pubkey", pubkey, 135 if args.pubkey: 136 sign_img(device, args.pubkey, args.privkey, args.output_sign_image_path) 155 parser.add_argument('--pubkey', required=False)
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_cert_chain_test.cpp | 937 CfBlob pubkey = { 0, nullptr }; in HWTEST_F() local 938 pubkey.data = (uint8_t *)(&g_testChainPubkeyPemRootData[0]); in HWTEST_F() 939 pubkey.size = g_testChainPubkeyPemRootDataSize; in HWTEST_F() 943 anchor.CAPubKey = &pubkey; in HWTEST_F() 969 CfBlob pubkey = { 0, nullptr }; in HWTEST_F() local 970 pubkey.data = (uint8_t *)(&g_testCrlSubAndIssNameDerData[0]); in HWTEST_F() 971 pubkey.size = g_testCrlSubAndIssNameDerDataSize; in HWTEST_F() 974 anchor.CAPubKey = &pubkey; in HWTEST_F() 997 CfBlob pubkey = { 0, nullptr }; in HWTEST_F() local 998 pubkey in HWTEST_F() 1033 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1067 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1096 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1154 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1208 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1606 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1641 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local 1678 CfBlob pubkey = { 0, nullptr }; HWTEST_F() local [all...] |
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_ed25519tox25519.c | 111 static void SwapEndianThirtyTwoByte(uint8_t *pubkey, int len, bool isBigEndian)
in SwapEndianThirtyTwoByte() argument 115 uint8_t tmp = pubkey[i];
in SwapEndianThirtyTwoByte() 116 pubkey[i] = pubkey[len - i - 1];
in SwapEndianThirtyTwoByte() 117 pubkey[len - i - 1] = tmp;
in SwapEndianThirtyTwoByte() 122 static int32_t CovertData(struct Curve25519Structure *curve25519, uint8_t *pubkey, int len)
in CovertData() argument 136 ret = ConvertStringToInt(pubkey, len, &curve25519->ed25519Pubkey);
in CovertData() 265 result ^= (0x1 & ((uint32_t)flag >> 7)); // 7: Get the sign bit of the last byte of the ed25519 pubkey
in CheckEd25519Pubkey()
|
/base/startup/hvb/tools/ |
H A D | hvbtool.py | 38 'pubkey': None, \ 180 def __init__(self, pubkey): 181 self.pubkey = pubkey 182 self.modulus_bits = self.get_bit_length(self.pubkey) 183 cmds = ['openssl', 'rsa', '-in', pubkey, '-modulus', '-noout', '-pubin'] 200 def get_bit_length(self, pubkey): 202 cmd = ['openssl', 'rsa', '-inform', 'PEM', '-in', pubkey, '-pubin', '-text'] 709 self.pubkey = _params['pubkey'] [all...] |
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 43 char *pubkey; member 734 if (unlikely(!ctx->rsa.pubkey)) in hpre_rsa_enc() 832 ctx->rsa.pubkey = dma_alloc_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n() 835 if (!ctx->rsa.pubkey) in hpre_rsa_set_n() 844 ctx->rsa.pubkey, in hpre_rsa_set_n() 846 ctx->rsa.pubkey = NULL; in hpre_rsa_set_n() 851 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n() 867 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e() 968 if (ctx->rsa.pubkey) { in hpre_rsa_clear_ctx() 970 ctx->rsa.pubkey, ct in hpre_rsa_clear_ctx() [all...] |
/base/security/crypto_framework/test/unittest/src/native/ |
H A D | native_asym_key_test.cpp | 98 OH_CryptoPubKey *pubkey = OH_CryptoKeyPair_GetPubKey(dupKeyPair); in HWTEST_F() local 100 res = OH_CryptoPubKey_Encode(pubkey, CRYPTO_PEM, "PKCS1", &retBlob); in HWTEST_F() 107 res = OH_CryptoPubKey_Encode(pubkey, CRYPTO_PEM, "X509", &retBlobX509); in HWTEST_F()
|
H A D | native_signature_test.cpp | 56 OH_CryptoPubKey *pubkey = OH_CryptoKeyPair_GetPubKey(keyPair); in HWTEST_F() local 68 res = OH_CryptoVerify_Init(verify, pubkey); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-i2c.c | 105 struct scatterlist *pubkey) in atmel_i2c_init_ecdh_cmd() 121 copied = sg_copy_to_buffer(pubkey, in atmel_i2c_init_ecdh_cmd() 122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd() 104 atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd, struct scatterlist *pubkey) atmel_i2c_init_ecdh_cmd() argument
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | atmel-i2c.c | 105 struct scatterlist *pubkey) in atmel_i2c_init_ecdh_cmd() 121 copied = sg_copy_to_buffer(pubkey, in atmel_i2c_init_ecdh_cmd() 122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd() 104 atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd, struct scatterlist *pubkey) atmel_i2c_init_ecdh_cmd() argument
|
H A D | atmel-i2c.h | 184 struct scatterlist *pubkey);
|
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_file.cpp | 452 struct hvb_buf pubkey; in VerifyModuleVerity() local 462 enum hvb_errno ret = footer_init_desc(ModuleHvbGetOps(), imagePath.c_str(), nullptr, &pubkey, vd_); in VerifyModuleVerity() 468 if (!EnhancedVerifyModule(pubkey.addr, pubkey.size)) { in VerifyModuleVerity()
|
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | turris-mox-rwtm.c | 72 u8 pubkey[135]; member 146 MOX_ATTR_RO(pubkey, "%s\n", pubkey); 254 sprintf(rwtm->pubkey, in mox_get_board_info()
|
/kernel/linux/linux-6.6/drivers/firmware/ |
H A D | turris-mox-rwtm.c | 72 u8 pubkey[135]; member 146 MOX_ATTR_RO(pubkey, "%s\n", pubkey); 254 sprintf(rwtm->pubkey, in mox_get_board_info()
|
/base/startup/hvb/libhvb/include/ |
H A D | hvb_ops.h | 44 enum hvb_io_errno (*valid_rvt_key)(struct hvb_ops *ops, const uint8_t *pubkey,
|
/base/global/i18n/frameworks/intl/include/ |
H A D | signature_verifier.h | 41 static bool VerifyRsa(RSA* pubkey, const std::string& digest, const std::string& sign);
|
/test/xts/acts/security/cryptoFramework/js_api_test_oh40/entry/src/ohosTest/js/test/utils/asymmetric/ |
H A D | publicAsymmetricPromise.js | 780 var pubkey;
788 pubkey = keypair.pubKey.getAsyKeySpec(
794 console.log("keyGenerationBySpecProcess keypair.pubKey " + pubkey);
806 if (pubkey == conPubkey && prikey == conPrikey) {
|