Home
last modified time | relevance | path

Searched refs:HcfMac (Results 1 – 7 of 7) sorted by relevance

/base/security/crypto_framework/interfaces/innerkits/crypto_operation/
Dmac.h25 typedef struct HcfMac HcfMac; typedef
27 struct HcfMac { struct
30 HcfResult (*init)(HcfMac *self, const HcfSymKey *key); argument
32 HcfResult (*update)(HcfMac *self, HcfBlob *input); argument
34 HcfResult (*doFinal)(HcfMac *self, HcfBlob *output); argument
36 uint32_t (*getMacLength)(HcfMac *self); argument
38 const char *(*getAlgoName)(HcfMac *self); argument
45 HcfResult HcfMacCreate(const char *algoName, HcfMac **mac);
/base/security/crypto_framework/frameworks/crypto_operation/
Dmac.c31 HcfMac base;
69 static HcfResult Init(HcfMac *self, const HcfSymKey *key) in Init()
83 static HcfResult Update(HcfMac *self, HcfBlob *input) in Update()
97 static HcfResult DoFinal(HcfMac *self, HcfBlob *output) in DoFinal()
111 static uint32_t GetMacLength(HcfMac *self) in GetMacLength()
125 static const char *GetAlgoName(HcfMac *self) in GetAlgoName()
153 HcfResult HcfMacCreate(const char *algoName, HcfMac **mac) in HcfMacCreate()
189 *mac = (HcfMac *)returnMacApi; in HcfMacCreate()
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_mac.h31 explicit NapiMac(HcfMac *macObj);
33 HcfMac *GetMac();
47 HcfMac *macObj_ = nullptr;
/base/security/crypto_framework/test/unittest/src/
Dcrypto_sm3_mac_test.cpp85 HcfMac *macObj = nullptr;
95 HcfMac *macObj = nullptr;
104 HcfMac *macObj = nullptr;
113 HcfMac *macObj = nullptr;
127 HcfMac *macObj = nullptr;
141 HcfMac *macObj = nullptr;
165 HcfMac *macObj = nullptr;
181 HcfMac *macObj = nullptr;
209 HcfMac *macObj = nullptr;
239 HcfMac *macObj = nullptr;
[all …]
Dcrypto_mac_test.cpp89 HcfMac *macObj = nullptr;
99 HcfMac *macObj = nullptr;
108 HcfMac *macObj = nullptr;
117 HcfMac *macObj = nullptr;
131 HcfMac *macObj = nullptr;
145 HcfMac *macObj = nullptr;
169 HcfMac *macObj = nullptr;
185 HcfMac *macObj = nullptr;
213 HcfMac *macObj = nullptr;
243 HcfMac *macObj = nullptr;
[all …]
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfmaccreate_fuzzer/
Dhcfmaccreate_fuzzer.cpp33 HcfMac *macObj = nullptr; in TestMac()
64 HcfMac *macObj = nullptr; in HcfMacCreateFuzzTest()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_mac.cpp46 HcfMac *mac = nullptr;
113 HcfMac *macObj = context->mac; in MacInitExecute()
138 HcfMac *macObj = context->mac; in MacUpdateExecute()
163 HcfMac *macObj = context->mac; in MacDoFinalExecute()
369 NapiMac::NapiMac(HcfMac *macObj) in NapiMac()
379 HcfMac *NapiMac::GetMac() in GetMac()
454 HcfMac *mac = napiMac->GetMac(); in JsGetMacLength()
510 HcfMac *macObj = nullptr; in CreateMac()