ReactOS  0.4.14-dev-614-gbfd8a84
RtlEncryptMemory.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS api tests
3  * LICENSE: GPLv2+ - See COPYING in the top level directory
4  * PURPOSE: Test for RtlEncrypt/DecryptMemory
5  * PROGRAMMER: Timo Kreuzer <timo.kreuzer@reactos.org>
6  */
7 
8 #include "precomp.h"
9 
10 #include <ntsecapi.h>
11 
13 {
14  static const CHAR TestData[32] = "This is some test Message!!!";
15  CHAR Buffer[32];
17 
18  /* Size must be aligned to 8 bytes */
21 
22  /* Buffer must not be aligned to 8 bytes */
25 
33 
34 }
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
START_TEST(RtlEncryptMemory)
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
char CHAR
Definition: xmlstorage.h:175
LONG NTSTATUS
Definition: precomp.h:26
#define ok_int(expression, result)
Definition: atltest.h:134
Definition: bufpool.h:45
NTSTATUS WINAPI RtlDecryptMemory(PVOID Memory, ULONG MemorySize, ULONG OptionFlags)
NTSYSAPI ULONG NTAPI RtlEqualMemory(CONST VOID *Source1, CONST VOID *Source2, ULONG Length)
#define RTL_ENCRYPT_OPTION_SAME_PROCESS
Definition: ksecdd.h:25
Status
Definition: gdiplustypes.h:24
NTSTATUS WINAPI RtlEncryptMemory(PVOID Memory, ULONG MemorySize, ULONG OptionFlags)
#define ok_ntstatus(status, expected)
Definition: atltest.h:135
return STATUS_SUCCESS
Definition: btrfs.c:2938