20#ifndef _AUTHSERVICE_INTERNAL_H_
21#define _AUTHSERVICE_INTERNAL_H_
34#define TWO_BYTE_ENCODE 0x82
76#define EFI_CERT_DB_NAME L"certdb"
77#define EFI_CERT_DB_VOLATILE_NAME L"certdbv"
91extern UINT32 mMaxCertDbSize;
92extern UINT32 mPlatformMode;
93extern UINT8 mVendorKeyState;
95extern VOID *mHashSha256Ctx;
96extern VOID *mHashSha384Ctx;
97extern VOID *mHashSha512Ctx;
129 IN CHAR16 *VariableName,
133 IN UINT32 Attributes,
134 IN AUTHVAR_TYPE AuthVarType,
155 IN CHAR16 *VariableName,
189 IN OUT VOID *NewData,
219 IN CHAR16 *VariableName,
223 IN UINT32 Attributes OPTIONAL,
252 IN CHAR16 *VariableName,
256 IN UINT32 Attributes OPTIONAL
287 IN CHAR16 *VariableName,
314 IN CHAR16 *VariableName,
337 IN CHAR16 *VariableName,
362 IN CHAR16 *VariableName,
366 IN UINT32 Attributes,
EFI_STATUS AuthServiceInternalUpdateVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes)
EFI_STATUS VerifyTimeBasedPayloadAndUpdate(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes, IN AUTHVAR_TYPE AuthVarType, OUT BOOLEAN *VarDel)
EFI_STATUS ProcessVarWithKek(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes OPTIONAL)
EFI_STATUS AuthServiceInternalUpdateVariableWithTimeStamp(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes, IN EFI_TIME *TimeStamp)
EFI_STATUS AuthServiceInternalFindVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT VOID **Data, OUT UINTN *DataSize)
EFI_STATUS ProcessVarWithPk(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes OPTIONAL, IN BOOLEAN IsPk)
EFI_STATUS ProcessVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes)
EFI_STATUS CleanCertsFromDb(VOID)
EFI_STATUS FilterSignatureList(IN VOID *Data, IN UINTN DataSize, IN OUT VOID *NewData, IN OUT UINTN *NewDataSize)
EFI_STATUS DeleteCertsFromDb(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes)