Home
last modified time | relevance | path

Searched refs:getClass (Results 1 – 25 of 67) sorted by relevance

123

/base/security/certificate_framework/frameworks/common/v1.0/src/
Dutils.c42 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/
Dutils.c42 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/
Dsm2_openssl.c75 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()
Decdsa_openssl.c336 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/
Dsm2_asy_key_generator_openssl.c82 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 …]
Drsa_asy_key_generator_openssl.c520 (*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/
Dobject_base.h22 const char *(*getClass)(void); member
/base/security/certificate_framework/interfaces/innerkits/common/
Dcf_object_base.h22 const char *(*getClass)(void); member
/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_asy_key_generator_test.cpp75 .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 …]
Dcrypto_rand_test.cpp198 invalidRandObj.base.getClass = GetInvalidRandClass;
214 invalidSpi.base.getClass = GetInvalidRandClass;
Dcrypto_dsa_verify_test.cpp48 const char *verifyClassName = verify->base.getClass();
Dcrypto_rsa_cipher_test.cpp97 .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 …]
Dcrypto_dsa_asy_key_generator_test.cpp129 .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/
Dcipher_sm2_openssl.c92 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()
Dcipher_sm4_openssl.c184 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/
Dsym_key_openssl.c278 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/
Drand_openssl.c105 returnSpiImpl->base.base.getClass = GetRandOpenSSLClass; in HcfRandSpiCreate()
/base/security/crypto_framework/frameworks/crypto_operation/
Drand.c147 returnRandApi->base.base.getClass = GetRandClass; in HcfRandCreate()
Dmd.c169 returnMdApi->base.base.getClass = GetMdClass; in HcfMdCreate()
Dkey_agreement.c189 returnGenerator->base.base.getClass = GetKeyAgreementClass; in HcfKeyAgreementCreate()
Dmac.c181 returnMacApi->base.base.getClass = GetMacClass; in HcfMacCreate()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/src/
Dmd_openssl.c162 returnSpiImpl->base.base.getClass = OpensslGetMdClass; in OpensslMdSpiCreate()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/key_agreement/src/
Decdh_openssl.c182 returnImpl->base.base.getClass = GetEcdhClass; in HcfKeyAgreementSpiEcdhCreate()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/src/
Dmac_openssl.c181 returnSpiImpl->base.base.getClass = OpensslGetMacClass; in OpensslMacSpiCreate()
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
Dcert_chain_validator.c199 returnValidator->base.base.getClass = GetCertChainValidatorClass; in HcfCertChainValidatorCreate()

123