Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 25 of 64) sorted by relevance

123

/base/security/crypto_framework/frameworks/native/src/
Dsym_cipher.c37 const char *(*getAlgorithm)(HcfCipher *self); member
143 if ((ctx == NULL) || (ctx->getAlgorithm == NULL)) { in OH_CryptoSymCipher_GetAlgoName()
146 return ctx->getAlgorithm((HcfCipher *)ctx); in OH_CryptoSymCipher_GetAlgoName()
Dsym_key.c91 if (keyCtx == NULL || (keyCtx->key.getAlgorithm == NULL)) { in OH_CryptoSymKey_GetAlgoName()
94 return keyCtx->key.getAlgorithm((HcfKey *)keyCtx); in OH_CryptoSymKey_GetAlgoName()
/base/security/crypto_framework/interfaces/innerkits/crypto_operation/
Dkdf.h33 const char *(*getAlgorithm)(HcfKdf *self); member
Dcipher.h65 const char *(*getAlgorithm)(HcfCipher *self); member
/base/security/certificate_framework/interfaces/innerkits/certificate/
Dcert_chain_validator.h42 const char *(*getAlgorithm)(HcfCertChainValidator *self); member
/base/security/crypto_framework/interfaces/innerkits/key/
Dkey.h65 const char *(*getAlgorithm)(HcfKey *self); member
/base/security/crypto_framework/frameworks/cj/src/
Dkey_impl.cpp50 const char *algo = hcfKey_->getAlgorithm(hcfKey_); in GetAlgorithm()
Dcipher_impl.cpp94 const char *algo = cipher_->getAlgorithm(cipher_); in GetAlgorithm()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_asy_key_generator_test.cpp406 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr);
412 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr);
438 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr);
444 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr);
518 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr);
524 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr);
598 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr);
629 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr);
662 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr);
668 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr);
[all …]
Dcrypto_brainpool_asy_key_generator_test.cpp378 … const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm(&(g_160r1KeyPair->pubKey->base));
384 const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm(nullptr);
390 const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
540 … const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm(&(g_160r1KeyPair->pubKey->base));
546 const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm(nullptr);
552 const char *algName = g_160r1KeyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
779 …const char *algName = g_160r1ConvertKeyPair->pubKey->base.getAlgorithm(&(g_160r1ConvertKeyPair->pu…
785 const char *algName = g_160r1ConvertKeyPair->pubKey->base.getAlgorithm(nullptr);
791 const char *algName = g_160r1ConvertKeyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
939 …const char *algName = g_160r1ConvertKeyPair->priKey->base.getAlgorithm(&g_160r1ConvertKeyPair->pri…
[all …]
Dcrypto_ed25519_asy_key_generator_test.cpp274 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
331 const char *algorithmName = keyPair->priKey->base.getAlgorithm(&(keyPair->priKey->base));
459 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
519 const char *algorithmName = keyPair->priKey->base.getAlgorithm(&(keyPair->priKey->base));
823 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(nullptr);
826 const char *algorithmName1 = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
913 const char *algorithmName = keyPair->priKey->base.getAlgorithm(nullptr);
916 const char *algorithmName1 = keyPair->priKey->base.getAlgorithm((HcfKey *)&g_obj);
1035 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(nullptr);
1038 const char *algorithmName1 = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
[all …]
Dcrypto_dh_asy_key_generator_test.cpp517 …const char *algorithmName = g_dh1536KeyPair->pubKey->base.getAlgorithm(&(g_dh1536KeyPair->pubKey->…
551 …const char *algorithmName = g_dh1536KeyPair->priKey->base.getAlgorithm(&(g_dh1536KeyPair->priKey->…
641 …const char *algorithmName = g_dh1536KeyPair->pubKey->base.getAlgorithm(&(g_dh1536KeyPair->pubKey->…
676 …const char *algorithmName = g_dh1536KeyPair->priKey->base.getAlgorithm(&(g_dh1536KeyPair->priKey->…
951 const char *algorithmName = g_dh1536KeyPair->pubKey->base.getAlgorithm(nullptr);
954 const char *algorithmName1 = g_dh1536KeyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
987 const char *algorithmName = g_dh1536KeyPair->priKey->base.getAlgorithm(nullptr);
990 const char *algorithmName1 = g_dh1536KeyPair->priKey->base.getAlgorithm((HcfKey *)&g_obj);
Dcrypto_x25519_asy_key_generator_test.cpp213 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
264 const char *algorithmName = keyPair->priKey->base.getAlgorithm(&(keyPair->priKey->base));
382 const char *algorithmName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
437 const char *algorithmName = keyPair->priKey->base.getAlgorithm(&(keyPair->priKey->base));
Dcrypto_sm4_cfb_cipher_test.cpp632 retAlgo = cipher->getAlgorithm(nullptr);
663 retAlgo = cipher->getAlgorithm(reinterpret_cast<HcfCipher *>(generator));
781 retAlgo = cipher->getAlgorithm(cipher);
Dcrypto_ecc_asy_key_generator_test.cpp656 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
675 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
694 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
979 const char *algName = keyPair->priKey->base.getAlgorithm(&keyPair->priKey->base);
998 const char *algName = keyPair->priKey->base.getAlgorithm(nullptr);
1017 const char *algName = keyPair->priKey->base.getAlgorithm((HcfKey *)&g_obj);
1464 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
1483 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
1502 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
1787 const char *algName = keyPair->priKey->base.getAlgorithm(&keyPair->priKey->base);
[all …]
Dcrypto_sm2_asy_key_generator_test.cpp446 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
465 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
675 const char *algName = keyPair->priKey->base.getAlgorithm(&keyPair->priKey->base);
694 const char *algName = keyPair->priKey->base.getAlgorithm(nullptr);
1006 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
1025 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
1235 const char *algName = keyPair->priKey->base.getAlgorithm(&keyPair->priKey->base);
1254 const char *algName = keyPair->priKey->base.getAlgorithm(nullptr);
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_pub_key.cpp52 const char *algName = this->GetPubKey()->base.getAlgorithm(&(this->GetPubKey()->base)); in ConvertToJsPubKey()
Dnapi_key.cpp50 const char *algo = key->getAlgorithm(key); in JsGetAlgorithm()
/base/security/certificate_framework/test/unittest/v1.0/src/
Dcrypto_x509_cert_chain_validator_test.cpp261 const char *algo = g_validator->getAlgorithm(g_validator);
519 const char *algo = g_validator->getAlgorithm(nullptr);
531 const char *algo = g_validator->getAlgorithm(&invalidValidator);
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
Dsym_key_openssl.c279 returnSymmKey->key.key.getAlgorithm = GetAlgorithm; in GenerateSymmKey()
338 returnSymmKey->key.key.getAlgorithm = GetAlgorithm; in ConvertSymmKey()
/base/security/crypto_framework/test/unittest/src/ecc/
Dcrypto_ecc_asy_key_generator_by_spec_test.cpp1435 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
1459 const char *algName = pubKey->base.getAlgorithm(&(pubKey->base));
1483 const char *algName = priKey->base.getAlgorithm(&(priKey->base));
1507 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
1531 const char *algName = pubKey->base.getAlgorithm(&(pubKey->base));
1555 const char *algName = priKey->base.getAlgorithm(&(priKey->base));
1580 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
1604 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
/base/security/crypto_framework/frameworks/crypto_operation/
Dkdf.c193 returnGenerator->base.getAlgorithm = GetAlgoName; in HcfKdfCreate()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_key.cpp58 const char *algo = key->getAlgorithm(key); in JsGetAlgorithm()
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
Dcert_chain_validator.c197 returnValidator->base.getAlgorithm = GetAlgorithm; in HcfCertChainValidatorCreate()
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfkdfcreate_fuzzer/
Dhcfkdfcreate_fuzzer.cpp152 generator->getAlgorithm(generator); in TestGetOneAlgoName()

123