/base/security/certificate_framework/frameworks/common/v1.0/src/ |
D | utils.c | 42 if ((obj == NULL) || (obj->getClass() == NULL) || (className == NULL)) { in IsClassMatch() 45 if (strcmp(obj->getClass(), className) == 0) { in IsClassMatch() 48 LOGE("class is not match. expect class: %s, input class: %s", className, obj->getClass()); in IsClassMatch() 55 if ((obj == NULL) || (obj->getClass() == NULL) || (className == NULL)) { in IsPubKeyClassMatch() 58 if (strcmp(obj->getClass(), className) == 0) { in IsPubKeyClassMatch() 61 LOGE("class is not match. expect class: %s, input class: %s", className, obj->getClass()); in IsPubKeyClassMatch()
|
/base/security/crypto_framework/common/src/ |
D | utils.c | 42 if ((obj == NULL) || (obj->getClass() == NULL) || (className == NULL)) { in IsClassMatch() 45 if (strcmp(obj->getClass(), className) == 0) { in IsClassMatch() 48 LOGE("class is not match. expect class: %s, input class: %s", className, obj->getClass()); in IsClassMatch()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
D | sm2_openssl.c | 75 if (self == NULL || !IsClassMatch(self, self->getClass())) { in DestroySm2Sign() 89 if (self == NULL || !IsClassMatch(self, self->getClass())) { in DestroySm2Verify() 126 if ((!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) || in EngineSignInit() 173 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineSignUpdate() 195 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineSignDoFinal() 245 if ((!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) || in EngineVerifyInit() 292 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineVerifyUpdate() 315 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineVerifyDoFinal() 360 returnImpl->base.base.getClass = GetSm2SignClass; in HcfSignSpiSm2Create() 400 returnImpl->base.base.getClass = GetSm2VerifyClass; in HcfVerifySpiSm2Create()
|
D | ecdsa_openssl.c | 336 returnImpl->base.base.getClass = GetEcdsaSignClass; in HcfSignSpiEcdsaCreate() 376 returnImpl->base.base.getClass = GetEcdsaVerifyClass; in HcfVerifySpiEcdsaCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | sm2_asy_key_generator_openssl.c | 82 if (!IsClassMatch(self, self->getClass())) { in DestroySm2KeyPairGenerator() 93 if (!IsClassMatch(self, self->getClass())) { in DestroySm2PubKey() 107 if (!IsClassMatch(self, self->getClass())) { in DestroySm2PriKey() 121 if (!IsClassMatch(self, self->getClass())) { in DestroySm2KeyPair() 258 if (!IsClassMatch((HcfObjectBase *)self, self->base.base.getClass())) { in Sm2PriKeyClearMem() 275 returnPubKey->base.base.base.getClass = GetSm2PubKeyClass; in PackSm2PubKey() 295 returnPriKey->base.base.base.getClass = GetSm2PriKeyClass; in PackSm2PriKey() 315 returnKeyPair->base.base.getClass = GetSm2KeyPairClass; in PackSm2KeyPair() 367 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineConvertSm2Key() 451 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineGenerateKeyPair() [all …]
|
D | rsa_asy_key_generator_openssl.c | 520 (*retPubKey)->base.base.base.getClass = GetOpensslPubkeyClass; in PackPubKey() 546 (*retPriKey)->base.base.base.getClass = GetOpensslPrikeyClass; in PackPriKey() 606 (*retKeyPair)->base.base.getClass = GetOpensslKeyPairClass; in PackKeyPair() 789 keyPair->base.base.getClass = GetOpensslKeyPairClass; in EngineConvertKey() 910 keyPairImpl->base.base.getClass = GetOpensslKeyPairClass; in GenerateKeyPairBySpec() 1097 impl->base.base.getClass = GetKeyGeneratorClass; in HcfAsyKeyGeneratorSpiRsaCreate()
|
/base/security/crypto_framework/interfaces/innerkits/common/ |
D | object_base.h | 22 const char *(*getClass)(void); member
|
/base/security/certificate_framework/interfaces/innerkits/common/ |
D | cf_object_base.h | 22 const char *(*getClass)(void); member
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_rsa_asy_key_generator_test.cpp | 75 .getClass = GetMockClass, 85 EXPECT_NE(generator->base.getClass(), nullptr); 98 EXPECT_NE(generator->base.getClass(), nullptr); 111 EXPECT_NE(generator->base.getClass(), nullptr); 125 EXPECT_NE(generator->base.getClass(), nullptr); 138 EXPECT_NE(generator->base.getClass(), nullptr); 151 EXPECT_NE(generator->base.getClass(), nullptr); 165 EXPECT_NE(generator->base.getClass(), nullptr); 178 EXPECT_NE(generator->base.getClass(), nullptr); 191 EXPECT_NE(generator->base.getClass(), nullptr); [all …]
|
D | crypto_rand_test.cpp | 198 invalidRandObj.base.getClass = GetInvalidRandClass; 214 invalidSpi.base.getClass = GetInvalidRandClass;
|
D | crypto_dsa_verify_test.cpp | 48 const char *verifyClassName = verify->base.getClass();
|
D | crypto_rsa_cipher_test.cpp | 97 .getClass = GetMockClass, 165 EXPECT_NE(cipher->base.getClass(), nullptr); 183 EXPECT_NE(cipher->base.getClass(), nullptr); 198 EXPECT_NE(cipher->base.getClass(), nullptr); 213 EXPECT_NE(cipher->base.getClass(), nullptr); 228 EXPECT_NE(cipher->base.getClass(), nullptr); 243 EXPECT_NE(cipher->base.getClass(), nullptr); 258 EXPECT_NE(cipher->base.getClass(), nullptr); 273 EXPECT_NE(cipher->base.getClass(), nullptr); 288 EXPECT_NE(cipher->base.getClass(), nullptr); [all …]
|
D | crypto_dsa_asy_key_generator_test.cpp | 129 .getClass = GetMockClass, 204 const char *className = generator->base.getClass(); 294 const char *className = dsa2048KeyPair_->base.getClass(); 321 const char *pkClassName = dsa2048KeyPair_->pubKey->base.base.getClass(); 477 const char *skClassName = dsa2048KeyPair_->priKey->base.base.getClass(); 677 const char *keyPairClassName = convertKeyPair->base.getClass(); 720 const char *pkClassName = convertKeyPair->pubKey->base.base.getClass(); 946 const char *skClassName = convertKeyPair->priKey->base.base.getClass();
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
D | cipher_sm2_openssl.c | 92 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineInit() 192 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineDoFinal() 218 if (!IsClassMatch(generator, generator->getClass())) { in EngineDestroySpiImpl() 259 returnImpl->super.base.getClass = EngineGetClass; in HcfCipherSm2CipherSpiCreate()
|
D | cipher_sm4_openssl.c | 184 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in CheckParam() 268 if (!IsClassMatch((HcfObjectBase *)self, self->base.getClass())) { in EngineUpdate() 329 if (!IsClassMatch((HcfObjectBase*)self, self->base.getClass())) { in EngineDoFinal() 360 if (!IsClassMatch(self, self->getClass())) { in EngineSm4GeneratorDestroy() 387 returnImpl->base.base.getClass = GetSm4GeneratorClass; in HcfCipherSm4GeneratorSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/ |
D | sym_key_openssl.c | 278 returnSymmKey->key.key.base.getClass = GetSymKeyClass; in GenerateSymmKey() 316 returnSymmKey->key.key.base.getClass = GetSymKeyClass; in ConvertSymmKey() 337 returnGenerator->base.base.getClass = GetSymKeyGeneratorClass; in HcfSymKeyGeneratorSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/ |
D | rand_openssl.c | 105 returnSpiImpl->base.base.getClass = GetRandOpenSSLClass; in HcfRandSpiCreate()
|
/base/security/crypto_framework/frameworks/crypto_operation/ |
D | rand.c | 147 returnRandApi->base.base.getClass = GetRandClass; in HcfRandCreate()
|
D | md.c | 169 returnMdApi->base.base.getClass = GetMdClass; in HcfMdCreate()
|
D | key_agreement.c | 189 returnGenerator->base.base.getClass = GetKeyAgreementClass; in HcfKeyAgreementCreate()
|
D | mac.c | 181 returnMacApi->base.base.getClass = GetMacClass; in HcfMacCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/src/ |
D | md_openssl.c | 162 returnSpiImpl->base.base.getClass = OpensslGetMdClass; in OpensslMdSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/key_agreement/src/ |
D | ecdh_openssl.c | 182 returnImpl->base.base.getClass = GetEcdhClass; in HcfKeyAgreementSpiEcdhCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/src/ |
D | mac_openssl.c | 181 returnSpiImpl->base.base.getClass = OpensslGetMacClass; in OpensslMacSpiCreate()
|
/base/security/certificate_framework/frameworks/core/v1.0/certificate/ |
D | cert_chain_validator.c | 199 returnValidator->base.base.getClass = GetCertChainValidatorClass; in HcfCertChainValidatorCreate()
|