Home
last modified time | relevance | path

Searched refs:spiObj (Results 1 – 25 of 39) sorted by relevance

12

/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_asy_key_generator_by_spec_cov_test.cpp166 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
173 HcfResult res = HcfAsyKeyGeneratorSpiRsaCreate(&params, &spiObj);
175 EXPECT_NE(spiObj, nullptr);
177 res = spiObj->engineGenerateKeyPairBySpec(nullptr, nullptr, nullptr);
179 HcfObjDestroy(spiObj);
184 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
191 HcfResult res = HcfAsyKeyGeneratorSpiRsaCreate(&params, &spiObj);
193 EXPECT_NE(spiObj, nullptr);
195 res = spiObj->engineGenerateKeyPairBySpec(spiObj, nullptr, nullptr);
197 HcfObjDestroy(spiObj);
[all …]
Dcrypto_ecc_key_agreement_test.cpp487 HcfKeyAgreementSpi *spiObj = nullptr; variable
488 int32_t res = HcfKeyAgreementSpiEcdhCreate(nullptr, &spiObj);
491 ASSERT_EQ(spiObj, nullptr);
511 HcfKeyAgreementSpi *spiObj = nullptr; variable
512 int32_t res = HcfKeyAgreementSpiEcdhCreate(&params, &spiObj);
515 ASSERT_NE(spiObj, nullptr);
518 res = spiObj->engineGenerateSecret((HcfKeyAgreementSpi *)&obj,
522 HcfObjDestroy(spiObj);
531 HcfKeyAgreementSpi *spiObj = nullptr; variable
532 int32_t res = HcfKeyAgreementSpiEcdhCreate(&params, &spiObj);
[all …]
Dcrypto_ecc_key_agreement_by_spec_test.cpp610 HcfKeyAgreementSpi *spiObj = nullptr; variable
611 int32_t res = HcfKeyAgreementSpiEcdhCreate(&g_params, &spiObj);
614 ASSERT_NE(spiObj, nullptr);
619 HcfKeyAgreementSpi *spiObj = nullptr; variable
620 int32_t res = HcfKeyAgreementSpiEcdhCreate(&g_params, &spiObj);
623 ASSERT_NE(spiObj, nullptr);
626 res = spiObj->engineGenerateSecret((HcfKeyAgreementSpi *)&obj,
630 HcfObjDestroy(spiObj);
635 HcfKeyAgreementSpi *spiObj = nullptr; variable
636 int32_t res = HcfKeyAgreementSpiEcdhCreate(&g_params, &spiObj);
[all …]
Dcrypto_rsa_asy_key_generator_test.cpp1248 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
1249 HcfResult res = HcfAsyKeyGeneratorSpiRsaCreate(nullptr, &spiObj);
1252 ASSERT_EQ(spiObj, nullptr);
1270 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
1277 HcfResult res = HcfAsyKeyGeneratorSpiRsaCreate(&params, &spiObj);
1280 ASSERT_EQ(spiObj, nullptr);
1285 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
1292 HcfResult res = HcfAsyKeyGeneratorSpiRsaCreate(&params, &spiObj);
1295 ASSERT_EQ(spiObj, nullptr);
1300 HcfAsyKeyGeneratorSpi *spiObj = nullptr; variable
[all …]
Dcrypto_rand_test.cpp212 HcfRandSpi *spiObj = nullptr; variable
215 HcfResult ret = HcfRandSpiCreate(&spiObj);
217 ASSERT_NE(spiObj, nullptr);
218 (void)spiObj->base.destroy(nullptr);
219 (void)spiObj->base.destroy(&(invalidSpi.base));
220 HcfObjDestroy(spiObj);
Dcrypto_sm2_sign_test.cpp762 HcfSignSpi *spiObj = nullptr; variable
763 int32_t res = HcfSignSpiSm2Create(nullptr, &spiObj);
766 ASSERT_EQ(spiObj, nullptr);
786 HcfSignSpi *spiObj = nullptr; variable
787 int32_t res = HcfSignSpiSm2Create(&params, &spiObj);
790 ASSERT_NE(spiObj, nullptr);
792 res = spiObj->engineInit((HcfSignSpi *)&obj, nullptr, sm2256KeyPair_->priKey);
795 HcfObjDestroy(spiObj);
804 HcfSignSpi *spiObj = nullptr; variable
805 int32_t res = HcfSignSpiSm2Create(&params, &spiObj);
[all …]
Dcrypto_sm2_verify_test.cpp811 HcfVerifySpi *spiObj = nullptr; variable
812 int32_t res = HcfVerifySpiSm2Create(nullptr, &spiObj);
815 ASSERT_EQ(spiObj, nullptr);
835 HcfVerifySpi *spiObj = nullptr; variable
836 int32_t res = HcfVerifySpiSm2Create(&params, &spiObj);
839 ASSERT_NE(spiObj, nullptr);
846 res = spiObj->engineUpdate(nullptr, &input);
849 HcfObjDestroy(spiObj);
858 HcfVerifySpi *spiObj = nullptr; variable
859 int32_t res = HcfVerifySpiSm2Create(&params, &spiObj);
[all …]
Dcrypto_rsa_cipher_test.cpp2332 HcfCipherGeneratorSpi *spiObj = nullptr; variable
2333 HcfResult res = HcfCipherRsaCipherSpiCreate(nullptr, &spiObj);
2336 ASSERT_EQ(spiObj, nullptr);
2341 HcfCipherGeneratorSpi *spiObj = nullptr; variable
2345 ASSERT_EQ(spiObj, nullptr);
2357 HcfCipherGeneratorSpi *spiObj = nullptr; variable
2358 HcfResult res = HcfCipherRsaCipherSpiCreate(&params, &spiObj);
2361 ASSERT_EQ(spiObj, nullptr);
2373 HcfCipherGeneratorSpi *spiObj = nullptr; variable
2374 HcfResult res = HcfCipherRsaCipherSpiCreate(&params, &spiObj);
[all …]
Dcrypto_md_sm3_test.cpp186 HcfMdSpi *spiObj = nullptr; variable
187 HcfResult ret = OpensslMdSpiCreate("SM3", &spiObj);
193 HcfMdSpi *spiObj = nullptr; variable
194 HcfResult ret = OpensslMdSpiCreate("SM2", &spiObj);
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
Dx509_certificate.c73 CfObjDestroy(impl->spiObj); in DestroyX509Certificate()
87 return ((HcfX509CertificateImpl *)self)->spiObj->engineVerify( in Verify()
88 ((HcfX509CertificateImpl *)self)->spiObj, key); in Verify()
101 return ((HcfX509CertificateImpl *)self)->spiObj->engineGetEncoded( in GetEncoded()
102 ((HcfX509CertificateImpl *)self)->spiObj, encodedByte); in GetEncoded()
115 return ((HcfX509CertificateImpl *)self)->spiObj->engineGetPublicKey( in GetPublicKey()
116 ((HcfX509CertificateImpl *)self)->spiObj, keyOut); in GetPublicKey()
129 return ((HcfX509CertificateImpl *)self)->spiObj->engineCheckValidityWithDate( in CheckValidityWithDate()
130 ((HcfX509CertificateImpl *)self)->spiObj, date); in CheckValidityWithDate()
143 return ((HcfX509CertificateImpl *)self)->spiObj->engineGetVersion( in GetVersion()
[all …]
Dx509_crl.c35 HcfX509CrlSpi *spiObj; member
83 CfObjDestroy(impl->spiObj); in DestroyX509Crl()
97 return ((HcfX509CrlImpl *)self)->spiObj->engineGetType( in GetType()
98 ((HcfX509CrlImpl *)self)->spiObj); in GetType()
111 return ((HcfX509CrlImpl *)self)->spiObj->engineIsRevoked( in IsRevoked()
112 ((HcfX509CrlImpl *)self)->spiObj, cert); in IsRevoked()
125 return ((HcfX509CrlImpl *)self)->spiObj->engineVerify( in Verify()
126 ((HcfX509CrlImpl *)self)->spiObj, key); in Verify()
139 return ((HcfX509CrlImpl *)self)->spiObj->engineGetEncoded( in GetEncoded()
140 ((HcfX509CrlImpl *)self)->spiObj, encodedByte); in GetEncoded()
[all …]
Dcert_chain_validator.c37 HcfCertChainValidatorSpi *spiObj; member
81 CfObjDestroy(validatorImpl->spiObj); in DestroyCertChainValidator()
153 res = impl->spiObj->engineValidate(impl->spiObj, &certsList); in Validate()
185 HcfCertChainValidatorSpi *spiObj = NULL; in HcfCertChainValidatorCreate() local
186 CfResult res = func->createFunc(&spiObj); in HcfCertChainValidatorCreate()
200 returnValidator->spiObj = spiObj; in HcfCertChainValidatorCreate()
/base/security/crypto_framework/frameworks/crypto_operation/
Dsignature.c37 HcfSignSpi *spiObj; member
45 HcfVerifySpi *spiObj; member
225 HcfObjDestroy(impl->spiObj); in DestroySign()
226 impl->spiObj = NULL; in DestroySign()
239 HcfObjDestroy(impl->spiObj); in DestroyVerify()
240 impl->spiObj = NULL; in DestroyVerify()
254 return tmpSelf->spiObj->engineSetSignSpecInt(tmpSelf->spiObj, item, saltLen); in SetSignSpecInt()
267 return tmpSelf->spiObj->engineGetSignSpecString(tmpSelf->spiObj, item, returnString); in GetSignSpecString()
280 return tmpSelf->spiObj->engineGetSignSpecInt(tmpSelf->spiObj, item, returnInt); in GetSignSpecInt()
293 …return ((HcfSignImpl *)self)->spiObj->engineInit(((HcfSignImpl *)self)->spiObj, params, privateKey… in SignInit()
[all …]
Drand.c32 HcfRandSpi *spiObj; member
77 return ((HcfRandImpl *)self)->spiObj->engineGenerateRandom( in GenerateRandom()
78 ((HcfRandImpl *)self)->spiObj, numBytes, random); in GenerateRandom()
91 return ((HcfRandImpl *)self)->spiObj->engineGetAlgoName(((HcfRandImpl *)self)->spiObj); in GetAlgoName()
104 ((HcfRandImpl *)self)->spiObj->engineSetSeed( in SetSeed()
105 ((HcfRandImpl *)self)->spiObj, seed); in SetSeed()
120 HcfObjDestroy(impl->spiObj); in HcfRandDestroy()
140 HcfRandSpi *spiObj = NULL; in HcfRandCreate() local
141 HcfResult res = createSpiFunc(&spiObj); in HcfRandCreate()
152 returnRandApi->spiObj = spiObj; in HcfRandCreate()
Dmac.c33 HcfMacSpi *spiObj; member
79 return ((HcfMacImpl *)self)->spiObj->engineInitMac( in Init()
80 ((HcfMacImpl *)self)->spiObj, key); in Init()
93 return ((HcfMacImpl *)self)->spiObj->engineUpdateMac( in Update()
94 ((HcfMacImpl *)self)->spiObj, input); in Update()
107 return ((HcfMacImpl *)self)->spiObj->engineDoFinalMac( in DoFinal()
108 ((HcfMacImpl *)self)->spiObj, output); in DoFinal()
121 return ((HcfMacImpl *)self)->spiObj->engineGetMacLength( in GetMacLength()
122 ((HcfMacImpl *)self)->spiObj); in GetMacLength()
149 HcfObjDestroy(impl->spiObj); in MacDestroy()
[all …]
Dmd.c34 HcfMdSpi *spiObj; member
81 return ((HcfMdImpl *)self)->spiObj->engineUpdateMd( in Update()
82 ((HcfMdImpl *)self)->spiObj, input); in Update()
95 return ((HcfMdImpl *)self)->spiObj->engineDoFinalMd( in DoFinal()
96 ((HcfMdImpl *)self)->spiObj, output); in DoFinal()
109 return ((HcfMdImpl *)self)->spiObj->engineGetMdLength( in GetMdLength()
110 ((HcfMdImpl *)self)->spiObj); in GetMdLength()
137 HcfObjDestroy(impl->spiObj); in MdDestroy()
162 HcfMdSpi *spiObj = NULL; in HcfMdCreate() local
163 HcfResult res = createSpiFunc(algoName, &spiObj); in HcfMdCreate()
[all …]
Dcipher.c33 HcfCipherGeneratorSpi *spiObj; member
207 HcfObjDestroy(impl->spiObj); in CipherDestroy()
228 return impl->spiObj->setCipherSpecUint8Array(impl->spiObj, item, pSource); in SetCipherSpecUint8Array()
251 return impl->spiObj->getCipherSpecString(impl->spiObj, item, returnString); in GetCipherSpecString()
269 return impl->spiObj->getCipherSpecUint8Array(impl->spiObj, item, returnUint8Array); in GetCipherSpecUint8Array()
284 return impl->spiObj->init(impl->spiObj, opMode, key, params); in CipherInit()
298 return impl->spiObj->update(impl->spiObj, input, output); in CipherUpdate()
312 return impl->spiObj->doFinal(impl->spiObj, input, output); in CipherFinal()
315 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher() argument
369 HcfCipherGeneratorSpi *spiObj = NULL; in HcfCipherCreate() local
[all …]
Dkey_agreement.c33 HcfKeyAgreementSpi *spiObj; member
136 return ((HcfKeyAgreementImpl *)self)->spiObj->engineGenerateSecret( in GenerateSecret()
137 ((HcfKeyAgreementImpl *)self)->spiObj, priKey, pubKey, returnSecret); in GenerateSecret()
149 HcfObjDestroy(impl->spiObj); in DestroyKeyAgreement()
150 impl->spiObj = NULL; in DestroyKeyAgreement()
181 HcfKeyAgreementSpi *spiObj = NULL; in HcfKeyAgreementCreate() local
182 HcfResult res = createSpiFunc(&params, &spiObj); in HcfKeyAgreementCreate()
192 returnGenerator->spiObj = spiObj; in HcfKeyAgreementCreate()
/base/security/crypto_framework/frameworks/key/
Dsym_key_generator.c47 HcfSymKeyGeneratorSpi *spiObj; member
147 HcfObjDestroy(impl->spiObj); in DestroySymmKeyGenerator()
164 return impl->spiObj->engineGenerateSymmKey(impl->spiObj, symmKey); in GenerateSymmKey()
179 return impl->spiObj->engineConvertSymmKey(impl->spiObj, key, symmKey); in ConvertSymmKey()
210 HcfSymKeyGeneratorSpi *spiObj = NULL; in HcfSymKeyGeneratorCreate() local
211 HcfResult res = funcSet->createFunc(&attr, &spiObj); in HcfSymKeyGeneratorCreate()
222 returnGenerator->spiObj = spiObj; in HcfSymKeyGeneratorCreate()
Dasy_key_generator.c45 HcfAsyKeyGeneratorSpi *spiObj; member
53 HcfAsyKeyGeneratorSpi *spiObj; member
947 …return impl->spiObj->engineConvertKey(impl->spiObj, params, pubKeyBlob, priKeyBlob, returnKeyPair); in ConvertKey()
962 return impl->spiObj->engineGenerateKeyPair(impl->spiObj, returnKeyPair); in GenerateKeyPair()
975 return impl->spiObj->engineGenerateKeyPairBySpec(impl->spiObj, impl->paramsSpec, returnKeyPair); in GenerateKeyPairBySpec()
988 return impl->spiObj->engineGeneratePubKeyBySpec(impl->spiObj, impl->paramsSpec, returnPubKey); in GeneratePubKeyBySpec()
1001 return impl->spiObj->engineGeneratePriKeyBySpec(impl->spiObj, impl->paramsSpec, returnPriKey); in GeneratePriKeyBySpec()
1013 HcfObjDestroy(impl->spiObj); in DestroyAsyKeyGenerator()
1014 impl->spiObj = NULL; in DestroyAsyKeyGenerator()
1027 HcfObjDestroy(impl->spiObj); in DestroyAsyKeyGeneratorBySpec()
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/
Drand_openssl.c94 HcfResult HcfRandSpiCreate(HcfRandSpi **spiObj) in HcfRandSpiCreate() argument
96 if (spiObj == NULL) { in HcfRandSpiCreate()
110 *spiObj = (HcfRandSpi *)returnSpiImpl; in HcfRandSpiCreate()
/base/security/certificate_framework/frameworks/common/v1.0/inc/
Dfwk_class.h24 HcfX509CertificateSpi *spiObj; member
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/inc/
Drand_openssl.h24 HcfResult HcfRandSpiCreate(HcfRandSpi **spiObj);
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/inc/
Dmd_openssl.h26 HcfResult OpensslMdSpiCreate(const char *opensslAlgoName, HcfMdSpi **spiObj);
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/inc/
Dmac_openssl.h26 HcfResult OpensslMacSpiCreate(const char *opensslAlgoName, HcfMacSpi **spiObj);

12