Home
last modified time | relevance | path

Searched refs:HcfMdSpi (Results 1 – 6 of 6) sorted by relevance

/base/security/crypto_framework/frameworks/spi/
Dmd_spi.h24 typedef struct HcfMdSpi HcfMdSpi; typedef
26 struct HcfMdSpi { struct
29 HcfResult (*engineUpdateMd)(HcfMdSpi *self, HcfBlob *input); argument
31 HcfResult (*engineDoFinalMd)(HcfMdSpi *self, HcfBlob *output); argument
33 uint32_t (*engineGetMdLength)(HcfMdSpi *self); argument
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/src/
Dmd_openssl.c27 HcfMdSpi base;
39 static EVP_MD_CTX *OpensslGetMdCtx(HcfMdSpi *self) in OpensslGetMdCtx()
68 static HcfResult OpensslEngineUpdateMd(HcfMdSpi *self, HcfBlob *input) in OpensslEngineUpdateMd()
82 static HcfResult OpensslEngineDoFinalMd(HcfMdSpi *self, HcfBlob *output) in OpensslEngineDoFinalMd()
107 static uint32_t OpensslEngineGetMdLength(HcfMdSpi *self) in OpensslEngineGetMdLength()
131 if (OpensslGetMdCtx((HcfMdSpi *)self) != NULL) { in OpensslDestroyMd()
132 Openssl_EVP_MD_CTX_free(OpensslGetMdCtx((HcfMdSpi *)self)); in OpensslDestroyMd()
137 HcfResult OpensslMdSpiCreate(const char *opensslAlgoName, HcfMdSpi **spiObj) in OpensslMdSpiCreate()
167 *spiObj = (HcfMdSpi *)returnSpiImpl; in OpensslMdSpiCreate()
/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/frameworks/crypto_operation/
Dmd.c29 typedef HcfResult (*HcfMdSpiCreateFunc)(const char *, HcfMdSpi **);
34 HcfMdSpi *spiObj;
162 HcfMdSpi *spiObj = NULL; in HcfMdCreate()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_md_sm3_test.cpp186 HcfMdSpi *spiObj = nullptr;
193 HcfMdSpi *spiObj = nullptr;
Dcrypto_md_test.cpp425 HcfMdSpi *spiObj = nullptr;
426 HcfMdSpi invalidSpi = {{0}};