16#define CRYPTMEM_HEAD_SIGNATURE SIGNATURE_32('c','m','h','d')
23#define CRYPTMEM_OVERHEAD sizeof(CRYPTMEM_HEAD)
42 NewSize = (
UINTN)(size) + CRYPTMEM_OVERHEAD;
50 PoolHdr->Signature = CRYPTMEM_HEAD_SIGNATURE;
53 return (VOID *)(PoolHdr + 1);
75 NewSize = (
UINTN)size + CRYPTMEM_OVERHEAD;
79 NewPoolHdr->Signature = CRYPTMEM_HEAD_SIGNATURE;
80 NewPoolHdr->Size = size;
86 ASSERT (OldPoolHdr->Signature == CRYPTMEM_HEAD_SIGNATURE);
87 OldSize = OldPoolHdr->Size;
92 CopyMem ((VOID *)(NewPoolHdr + 1), ptr,
MIN (OldSize, size));
96 return (VOID *)(NewPoolHdr + 1);
119 ASSERT (PoolHdr->Signature == CRYPTMEM_HEAD_SIGNATURE);
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)