freeotfehashimpl.h

来自「文件驱动加密,功能强大,可产生加密分区,支持AES,MD2,MD4,MD5MD2」· C头文件 代码 · 共 67 行

H
67
字号
// Description: 
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW:   http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//


// This file details the functions that the encryption algorithm MUST implement

#ifndef _FreeOTFEHashImpl_H
#define _FreeOTFEHashImpl_H   1

#include <ntstatus.h>  // Required for NTSTATUS
#include "FreeOTFEHashAPICommon.h"

#ifndef WINCE
#include <ntddk.h>
#endif
//xxx - junk #include "FreeOTFEHashAPI.h"
//xxx - junk #include "FreeOTFEHashDriver.h"
//xxx - junk #include "FreeOTFEHashAPICommon.h"


// Hash driver init function
// devExt - The device extension to have it's "Driver identification and
//          hashes supported" members initialized
NTSTATUS
ImpHashDriverExtDetailsInit(
    IN OUT  HASH_DRIVER_INFO* infoBlock
);


// Hash driver cleardown function
// devExt - The device extension to have it's "Driver identification and
//          hashes supported" members cleared down
NTSTATUS
ImpHashDriverExtDetailsCleardown(
    IN OUT  HASH_DRIVER_INFO* infoBlock
);


// Hash data function
// Hashes "Data", setting "Hash" to the resulting hash
// DataLength - (in bits) The length of "Data"
// Data - The data to be hashed
// HashLength - (in bits) On calling this function, HashLength must be set to the 
//              length of the "Hash" buffer. This function will then change 
//              HashLength to be the size of the resulting hash
// Hash - This will be set to the resulting hash
NTSTATUS
ImpHashHashData(
    IN      GUID* HashGUID,
    IN      unsigned int DataLength,  // In bits
    IN      unsigned char* Data,
    IN OUT  unsigned int* HashLength,  // In bits
    OUT     unsigned char* Hash
);


// =========================================================================
// =========================================================================

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?