mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-08 14:36:22 +01:00
28 lines
691 B
C
28 lines
691 B
C
|
#ifndef _METERPRETER_SOURCE_COMMON_CRYPTO_H
|
||
|
#define _METERPRETER_SOURCE_COMMON_CRYPTO_H
|
||
|
|
||
|
struct _Remote;
|
||
|
struct _Packet;
|
||
|
|
||
|
typedef struct _CryptoContext
|
||
|
{
|
||
|
struct _Remote *remote;
|
||
|
LPVOID extension;
|
||
|
|
||
|
struct
|
||
|
{
|
||
|
DWORD (*process_negotiate_request)(struct _CryptoContext *ctx, struct _Packet *request);
|
||
|
|
||
|
DWORD (*encrypt)(struct _CryptoContext *ctx, PUCHAR inBuffer, ULONG inBufferLength,
|
||
|
PUCHAR *outBuffer, PULONG outBufferLength);
|
||
|
DWORD (*decrypt)(struct _CryptoContext *ctx, PUCHAR inBuffer, ULONG inBufferLength,
|
||
|
PUCHAR *outBuffer, PULONG outBufferLength);
|
||
|
} handlers;
|
||
|
|
||
|
} CryptoContext;
|
||
|
|
||
|
// Individual ciphers
|
||
|
#include "crypto/xor.h"
|
||
|
|
||
|
#endif
|