Home
last modified time | relevance | path

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

123

/ohos5.0/base/security/crypto_framework/frameworks/native/src/
H A 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()
H A 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()
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A 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);
1150 EXPECT_EQ(pubkey->base.getAlgorithm(nullptr), nullptr);
[all …]
H A 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);
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…
945 const char *algName = g_160r1ConvertKeyPair->priKey->base.getAlgorithm(nullptr);
[all …]
H A 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));
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);
1099 const char *algorithmName = keyPair->priKey->base.getAlgorithm(nullptr);
[all …]
H A 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);
H A 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));
H A 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);
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);
1806 const char *algName = keyPair->priKey->base.getAlgorithm(nullptr);
[all …]
H A Dcrypto_sm4_cfb_cipher_test.cpp632 retAlgo = cipher->getAlgorithm(nullptr);
663 retAlgo = cipher->getAlgorithm(reinterpret_cast<HcfCipher *>(generator));
781 retAlgo = cipher->getAlgorithm(cipher);
H A 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);
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/crypto_operation/
H A Dkdf.h33 const char *(*getAlgorithm)(HcfKdf *self); member
H A Dcipher.h65 const char *(*getAlgorithm)(HcfCipher *self); member
/ohos5.0/base/security/certificate_framework/interfaces/innerkits/certificate/
H A Dcert_chain_validator.h42 const char *(*getAlgorithm)(HcfCertChainValidator *self); member
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/key/
H A Dkey.h65 const char *(*getAlgorithm)(HcfKey *self); member
/ohos5.0/base/security/crypto_framework/frameworks/cj/src/
H A Dkey_impl.cpp50 const char *algo = hcfKey_->getAlgorithm(hcfKey_); in GetAlgorithm()
H A Dcipher_impl.cpp94 const char *algo = cipher_->getAlgorithm(cipher_); in GetAlgorithm()
/ohos5.0/base/security/certificate_framework/test/unittest/v1.0/src/
H A 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);
/ohos5.0/base/security/crypto_framework/test/unittest/src/ecc/
H A 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);
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
H A Dsym_key_openssl.c279 returnSymmKey->key.key.getAlgorithm = GetAlgorithm; in GenerateSymmKey()
338 returnSymmKey->key.key.getAlgorithm = GetAlgorithm; in ConvertSymmKey()
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_pub_key.cpp52 const char *algName = this->GetPubKey()->base.getAlgorithm(&(this->GetPubKey()->base)); in ConvertToJsPubKey()
H A Dnapi_key.cpp50 const char *algo = key->getAlgorithm(key); in JsGetAlgorithm()
/ohos5.0/base/security/crypto_framework/test/unittest/src/sm2/
H A Dcrypto_sm2_asy_key_generator_by_spec_test.cpp670 const char *algName = keyPair->pubKey->base.getAlgorithm(&(keyPair->pubKey->base));
697 const char *algName = keyPair->pubKey->base.getAlgorithm(nullptr);
724 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
1133 const char *algName = keyPair->priKey->base.getAlgorithm(&(keyPair->priKey->base));
1160 const char *algName = keyPair->priKey->base.getAlgorithm(nullptr);
1187 const char *algName = keyPair->priKey->base.getAlgorithm((HcfKey *)&g_obj);
1605 const char *algName = pubKey->base.getAlgorithm(&(pubKey->base));
1632 const char *algName = pubKey->base.getAlgorithm(nullptr);
1659 const char *algName = pubKey->base.getAlgorithm((HcfKey *)&g_obj);
/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/
H A Dcrypto_aes_cipher_test.cpp153 keyAlgoName = key->key.getAlgorithm(&(key->key));
183 keyAlgoName = key->key.getAlgorithm(nullptr);
214 keyAlgoName = key->key.getAlgorithm(reinterpret_cast<HcfKey *>(generator));
/ohos5.0/base/security/crypto_framework/frameworks/crypto_operation/
H A Dkdf.c193 returnGenerator->base.getAlgorithm = GetAlgoName; in HcfKdfCreate()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_key.cpp58 const char *algo = key->getAlgorithm(key); in JsGetAlgorithm()

123