#include <ntdef.h>
Go to the source code of this file.
◆ PSHA_CTX
◆ A_SHAFinal()
Definition at line 171 of file sha1.c.
172{
176 ULONG BufferContentSize, LengthHi, LengthLo;
177
178 BufferContentSize =
Context->Count[1] & 63;
179 if (BufferContentSize >= 56)
180 Pad = 56 + 64 - BufferContentSize;
181 else
182 Pad = 56 - BufferContentSize;
183
184 LengthHi = (
Context->Count[0] << 3) | (
Context->Count[1] >> (32 - 3));
185 LengthLo = (
Context->Count[1] << 3);
186
193
196
199}
_In_ PIRP _In_ PIO_COMPLETION_ROUTINE _In_ PVOID Context
macro TEXTAREA section xr p2align endm macro DATAAREA section dw endm macro RODATAAREA section dr endm macro EXPORT Attribute global Name endm macro IMPORT Target ifc WEAK weak Name set Target endif endm set macro SET_COMDAT_ALIGNMENT Alignment set Alignment endm macro NESTED_ENTRY Name global Name p2align xr p2align __ComdatAlignment NESTED_ENTRY Name endm macro ALTERNATE_ENTRY Name global Name Params endm macro ALIGN Pad
VOID NTAPI A_SHAUpdate(PSHA_CTX Context, const unsigned char *Buffer, ULONG BufferSize)
VOID NTAPI A_SHAInit(PSHA_CTX Context)
_In_ WDFCOLLECTION _In_ ULONG Index
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
◆ A_SHAInit()
◆ A_SHAUpdate()
Definition at line 128 of file sha1.c.
129{
130 ULONG BufferContentSize;
131
132 BufferContentSize =
Context->Count[1] & 63;
137
139 {
142 }
143 else
144 {
146 {
148 64 - BufferContentSize);
149 Buffer += 64 - BufferContentSize;
152 BufferContentSize = 0;
153 }
155 }
156}
#define memcpy(s1, s2, n)
static void SHA1Transform(ULONG State[5], UCHAR Buffer[64])
Referenced by A_SHAFinal().