freeotfecallmodulefn.h
来自「文件驱动加密,功能强大,可产生加密分区,支持AES,MD2,MD4,MD5MD2」· C头文件 代码 · 共 61 行
H
61 行
// Description: FreeOTFE Perform Module Function Call
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//
#ifndef _FreeOTFECallModuleFn_H
#define _FreeOTFECallModuleFn_H 1
#include "FreeOTFEContext.h"
#ifdef WINCE
#include <winnt.h> // Required for LARGE_INTEGER
#else
// xxx - junk #include <winnt.h> // Required for LARGE_INTEGER
#include <ntdef.h> // Required for LARGE_INTEGER
// xxx - junk #include <ntddk.h> // Required for PBYPE
#endif
// =========================================================================
// Call the relevant encryption function
NTSTATUS
BlockEncrypt(
IN DEVICE_CONTEXT* DeviceContext,
IN LARGE_INTEGER fileOffset, // The offset within the *volume file* where the
// data was obtained from
IN FREEOTFEBYTE* plaintextBuffer,
IN FREEOTFEBYTE* cyphertextBuffer
);
// Call the relevant decryption function
NTSTATUS
BlockDecrypt(
IN DEVICE_CONTEXT* DeviceContext,
IN LARGE_INTEGER fileOffset, // The offset within the *volume file* where the
// data was obtained from
IN FREEOTFEBYTE* cyphertextBuffer,
IN FREEOTFEBYTE* plaintextBuffer
);
// Call the relevant hash function
NTSTATUS
DataHash(
IN MODULE_DETAILS_HASH* hashModule,
IN unsigned int dataLength, // In bits
IN FREEOTFEBYTE* dataBuffer,
IN OUT unsigned int* hashLength, // In bits
IN FREEOTFEBYTE* hashBuffer
);
// =========================================================================
// =========================================================================
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?