/base/security/crypto_framework/frameworks/certificate/ |
D | x509_certificate.c | 73 HcfObjDestroy(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 …]
|
D | x509_crl.c | 35 HcfX509CrlSpi *spiObj; member 83 HcfObjDestroy(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 …]
|
D | cert_chain_validator.c | 37 HcfCertChainValidatorSpi *spiObj; member 81 HcfObjDestroy(validatorImpl->spiObj); in DestroyCertChainValidator() 153 res = impl->spiObj->engineValidate(impl->spiObj, &certsList); in Validate() 184 HcfCertChainValidatorSpi *spiObj = NULL; in HcfCertChainValidatorCreate() local 185 HcfResult res = func->createFunc(&spiObj); in HcfCertChainValidatorCreate() 199 returnValidator->spiObj = spiObj; in HcfCertChainValidatorCreate()
|
/base/security/crypto_framework/frameworks/crypto_operation/ |
D | signature.c | 35 HcfSignSpi *spiObj; member 43 HcfVerifySpi *spiObj; member 188 HcfObjDestroy(impl->spiObj); in DestroySign() 189 impl->spiObj = NULL; in DestroySign() 202 HcfObjDestroy(impl->spiObj); in DestroyVerify() 203 impl->spiObj = NULL; in DestroyVerify() 217 …return ((HcfSignImpl *)self)->spiObj->engineInit(((HcfSignImpl *)self)->spiObj, params, privateKey… in SignInit() 230 return ((HcfSignImpl *)self)->spiObj->engineUpdate(((HcfSignImpl *)self)->spiObj, data); in SignUpdate() 243 …return ((HcfSignImpl *)self)->spiObj->engineSign(((HcfSignImpl *)self)->spiObj, data, returnSignat… in SignDoFinal() 256 …return ((HcfVerifyImpl *)self)->spiObj->engineInit(((HcfVerifyImpl *)self)->spiObj, params, public… in VerifyInit() [all …]
|
D | mac.c | 33 HcfMacSpi *spiObj; member 78 return ((HcfMacImpl *)self)->spiObj->engineInitMac( in Init() 79 ((HcfMacImpl *)self)->spiObj, key); in Init() 92 return ((HcfMacImpl *)self)->spiObj->engineUpdateMac( in Update() 93 ((HcfMacImpl *)self)->spiObj, input); in Update() 106 return ((HcfMacImpl *)self)->spiObj->engineDoFinalMac( in DoFinal() 107 ((HcfMacImpl *)self)->spiObj, output); in DoFinal() 120 return ((HcfMacImpl *)self)->spiObj->engineGetMacLength( in GetMacLength() 121 ((HcfMacImpl *)self)->spiObj); in GetMacLength() 148 HcfObjDestroy(impl->spiObj); in MacDestroy() [all …]
|
D | md.c | 34 HcfMdSpi *spiObj; member 80 return ((HcfMdImpl *)self)->spiObj->engineUpdateMd( in Update() 81 ((HcfMdImpl *)self)->spiObj, input); in Update() 94 return ((HcfMdImpl *)self)->spiObj->engineDoFinalMd( in DoFinal() 95 ((HcfMdImpl *)self)->spiObj, output); in DoFinal() 108 return ((HcfMdImpl *)self)->spiObj->engineGetMdLength( in GetMdLength() 109 ((HcfMdImpl *)self)->spiObj); in GetMdLength() 136 HcfObjDestroy(impl->spiObj); in MdDestroy() 161 HcfMdSpi *spiObj = NULL; in HcfMdCreate() local 162 HcfResult res = createSpifunc(algoName, &spiObj); in HcfMdCreate() [all …]
|
D | cipher.c | 32 HcfCipherGeneratorSpi *spiObj; member 162 HcfObjDestroy(impl->spiObj); in CipherDestroy() 178 return impl->spiObj->init(impl->spiObj, opMode, key, params); in CipherInit() 192 return impl->spiObj->update(impl->spiObj, input, output); in CipherUpdate() 206 return impl->spiObj->doFinal(impl->spiObj, input, output); in CipherFinal() 209 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher() argument 260 HcfCipherGeneratorSpi *spiObj = NULL; in HcfCipherCreate() local 261 HcfResult res = funcSet->createFunc(&attr, &spiObj); in HcfCipherCreate() 267 returnGenerator->spiObj = spiObj; in HcfCipherCreate() 268 InitCipher(spiObj, returnGenerator); in HcfCipherCreate()
|
D | key_agreement.c | 33 HcfKeyAgreementSpi *spiObj; member 122 return ((HcfKeyAgreementImpl *)self)->spiObj->engineGenerateSecret( in GenerateSecret() 123 ((HcfKeyAgreementImpl *)self)->spiObj, priKey, pubKey, returnSecret); in GenerateSecret() 135 HcfObjDestroy(impl->spiObj); in DestroyKeyAgreement() 136 impl->spiObj = NULL; in DestroyKeyAgreement() 167 HcfKeyAgreementSpi *spiObj = NULL; in HcfKeyAgreementCreate() local 168 int32_t res = createSpifunc(¶ms, &spiObj); in HcfKeyAgreementCreate() 178 returnGenerator->spiObj = spiObj; in HcfKeyAgreementCreate()
|
/base/security/crypto_framework/frameworks/rand/ |
D | rand.c | 30 HcfRandSpi *spiObj; member 71 return ((HcfRandImpl *)self)->spiObj->engineGenerateRandom( in GenerateRandom() 72 ((HcfRandImpl *)self)->spiObj, numBytes, random); in GenerateRandom() 85 ((HcfRandImpl *)self)->spiObj->engineSetSeed( in SetSeed() 86 ((HcfRandImpl *)self)->spiObj, seed); in SetSeed() 101 HcfObjDestroy(impl->spiObj); in HcfRandDestroy() 121 HcfRandSpi *spiObj = NULL; in HcfRandCreate() local 122 HcfResult res = createSpifunc(&spiObj); in HcfRandCreate() 132 returnRandApi->spiObj = spiObj; in HcfRandCreate()
|
/base/security/crypto_framework/frameworks/key/ |
D | sym_key_generator.c | 46 HcfSymKeyGeneratorSpi *spiObj; member 142 HcfObjDestroy(impl->spiObj); in DestroySymmKeyGenerator() 159 return impl->spiObj->engineGenerateSymmKey(impl->spiObj, symmKey); in GenerateSymmKey() 174 return impl->spiObj->engineConvertSymmKey(impl->spiObj, key, symmKey); in ConvertSymmKey() 205 HcfSymKeyGeneratorSpi *spiObj = NULL; in HcfSymKeyGeneratorCreate() local 206 int32_t res = funcSet->createFunc(&attr, &spiObj); in HcfSymKeyGeneratorCreate() 217 returnGenerator->spiObj = spiObj; in HcfSymKeyGeneratorCreate()
|
D | asy_key_generator.c | 34 HcfAsyKeyGeneratorSpi *spiObj; member 182 return ((HcfAsyKeyGeneratorImpl *)self)->spiObj->engineConvertKey( in ConvertKey() 183 ((HcfAsyKeyGeneratorImpl *)self)->spiObj, params, pubKeyBlob, priKeyBlob, returnKeyPair); in ConvertKey() 196 return ((HcfAsyKeyGeneratorImpl *)self)->spiObj->engineGenerateKeyPair( in GenerateKeyPair() 197 ((HcfAsyKeyGeneratorImpl *)self)->spiObj, returnKeyPair); in GenerateKeyPair() 209 HcfObjDestroy(impl->spiObj); in DestroyAsyKeyGenerator() 210 impl->spiObj = NULL; in DestroyAsyKeyGenerator() 241 HcfAsyKeyGeneratorSpi *spiObj = NULL; in HcfAsyKeyGeneratorCreate() local 243 res = createSpifunc(¶ms, &spiObj); in HcfAsyKeyGeneratorCreate() 254 returnGenerator->spiObj = spiObj; in HcfAsyKeyGeneratorCreate()
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_x509_certificate_test.cpp | 809 HcfX509CertificateSpi *spiObj = nullptr; variable 815 HcfResult ret = OpensslX509CertSpiCreate(&inStream, &spiObj); 817 EXPECT_NE(spiObj, nullptr); 818 (void)spiObj->base.destroy(nullptr); 819 ret = spiObj->engineVerify(nullptr, nullptr); 820 ret = spiObj->engineGetEncoded(nullptr, nullptr); 821 ret = spiObj->engineGetPublicKey(nullptr, nullptr); 823 ret = spiObj->engineCheckValidityWithDate(nullptr, nullptr); 825 long ver = spiObj->engineGetVersion(nullptr); 827 long serial = spiObj->engineGetSerialNumber(nullptr); [all …]
|
D | crypto_rand_test.cpp | 199 HcfRandSpi *spiObj = nullptr; variable 202 HcfResult ret = HcfRandSpiCreate(&spiObj); 204 ASSERT_NE(spiObj, nullptr); 205 (void)spiObj->base.destroy(nullptr); 206 (void)spiObj->base.destroy(&(invalidSpi.base)); 207 HcfObjDestroy(spiObj);
|
D | crypto_x509_cert_chain_validator_test.cpp | 351 HcfCertChainValidatorSpi *spiObj = nullptr; variable 354 res = HcfCertChainValidatorSpiCreate(&spiObj); 356 res = spiObj->engineValidate(spiObj, nullptr); 358 (void)spiObj->base.destroy(nullptr); 363 HcfCertChainValidatorSpi *spiObj = nullptr; variable 364 HcfResult res = HcfCertChainValidatorSpiCreate(&spiObj); 368 res = spiObj->engineValidate(&invalidSpi, &data); 370 (void)spiObj->base.destroy(&(invalidSpi.base));
|
D | crypto_x509_crl_test.cpp | 1383 HcfX509CrlSpi *spiObj = nullptr; variable 1384 HcfResult ret = HcfCX509CrlSpiCreate(g_crlDerInStream, &spiObj); 1386 EXPECT_NE(spiObj, nullptr); 1388 (void)spiObj->base.destroy(nullptr); 1389 const char *tmp = spiObj->engineGetType(nullptr); 1391 bool flag = spiObj->engineIsRevoked(nullptr, nullptr); 1393 ret = spiObj->engineGetEncoded(nullptr, nullptr); 1395 ret = spiObj->engineVerify(nullptr, nullptr); 1397 long ver = spiObj->engineGetVersion(nullptr); 1399 ret = spiObj->engineGetIssuerName(nullptr, nullptr); [all …]
|
D | crypto_md_test.cpp | 386 HcfMdSpi *spiObj = nullptr; variable 393 HcfResult ret = OpensslMdSpiCreate("SHA256", &spiObj); 395 ASSERT_NE(spiObj, nullptr); 396 (void)spiObj->base.destroy(nullptr); 397 (void)spiObj->base.destroy(&(invalidSpi.base)); 398 ret = spiObj->engineUpdateMd(&invalidSpi, &inBlob); 400 ret = spiObj->engineDoFinalMd(&invalidSpi, &outBlob); 402 uint32_t len = spiObj->engineGetMdLength(&invalidSpi); 404 HcfObjDestroy(spiObj);
|
D | crypto_mac_test.cpp | 591 HcfMacSpi *spiObj = nullptr; variable 592 ret = OpensslMacSpiCreate(nullptr, &spiObj); 598 HcfMacSpi *spiObj = nullptr; variable 615 ret = OpensslMacSpiCreate("SHA256", &spiObj); 617 ASSERT_NE(spiObj, nullptr); 618 (void)spiObj->base.destroy(nullptr); 619 (void)spiObj->base.destroy(&(invalidSpi.base)); 620 ret = spiObj->engineInitMac(&invalidSpi, key); 622 ret = spiObj->engineUpdateMac(&invalidSpi, &inBlob); 624 ret = spiObj->engineDoFinalMac(&invalidSpi, &outBlob); [all …]
|
/base/security/crypto_framework/plugin/openssl_plugin/rand/src/ |
D | rand_openssl.c | 72 HcfResult HcfRandSpiCreate(HcfRandSpi **spiObj) in HcfRandSpiCreate() argument 74 if (spiObj == NULL) { in HcfRandSpiCreate() 87 *spiObj = (HcfRandSpi *)returnSpiImpl; in HcfRandSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/rand/inc/ |
D | rand_openssl.h | 24 HcfResult HcfRandSpiCreate(HcfRandSpi **spiObj);
|
/base/security/crypto_framework/common/inc/ |
D | fwk_class.h | 24 HcfX509CertificateSpi *spiObj; member
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/src/ |
D | md_openssl.c | 136 HcfResult OpensslMdSpiCreate(const char *opensslAlgoName, HcfMdSpi **spiObj) in OpensslMdSpiCreate() argument 138 if (spiObj == NULL) { in OpensslMdSpiCreate() 166 *spiObj = (HcfMdSpi *)returnSpiImpl; in OpensslMdSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/inc/ |
D | md_openssl.h | 26 HcfResult OpensslMdSpiCreate(const char *opensslAlgoName, HcfMdSpi **spiObj);
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/inc/ |
D | mac_openssl.h | 26 HcfResult OpensslMacSpiCreate(const char *opensslAlgoName, HcfMacSpi **spiObj);
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/src/ |
D | mac_openssl.c | 158 HcfResult OpensslMacSpiCreate(const char *opensslAlgoName, HcfMacSpi **spiObj) in OpensslMacSpiCreate() argument 160 if (spiObj == NULL) { in OpensslMacSpiCreate() 186 *spiObj = (HcfMacSpi *)returnSpiImpl; in OpensslMacSpiCreate()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
D | openssl_class.h | 94 HcfX509CrlSpi *spiObj; member
|