📄 alg.h
字号:
/******************************************************************* * Copyright (c) 1994-1999 Jetico, Inc., Finland * All rights reserved. * * File: alg.h * Created: * Revision: $Id: alg.h,v 1.1 2005/05/12 09:51:39 crypt Rel-1.6-3 $ * * Description: IOCTL wrappers for BestCrypt Driver. * *******************************************************************/#ifndef __ALG_H__#define __ALG_H__#include <bc_ioctl.h>#ifdef CPLUSPLUSextern "C" {#endif/* all these functions return 0 upon success ERROR_CODE otherwise */extern int alg_verify (ALG_SERV Alg);extern int alg_make_key (ALG_SERV Alg, BYTE *key, DWORD key_len, /* bits */ BYTE *pool, KEY_HANDLE *key_handle);extern int alg_free_key (ALG_SERV Alg, KEY_HANDLE key_handle); extern int alg_encrypt (ALG_SERV Alg, KEY_HANDLE key_handle, BYTE *iv, BYTE *buffer, DWORD buffer_len); extern int alg_decrypt (ALG_SERV Alg, KEY_HANDLE key_handle, BYTE *iv, BYTE *buffer, DWORD buffer_len);/*extern int bc_set_fd64 (ALG_SERV Alg, BYTE *key, DWORD key_len, // bits BYTE *pool, int fd, unsigned long long offset, unsigned int flags); extern int bc_set_fdkh64(ALG_SERV Alg, KEY_HANDLE key_handle, int fd, unsigned long long offset, unsigned long long start_sector, unsigned long long num_sectors, unsigned int flags);extern int bc_clear_fd (ALG_SERV Alg);// bc_get_info returns 0 if device is free, 1 otherwise extern int bc_get_info (ALG_SERV Alg, int *ver_major, int *ver_minor);// bc_(un)lock_dev returns 0 upon success error code if error occured // bc_(un)lock_dev is protected safely from multiple calls extern int bc_lock_dev (ALG_SERV Alg);extern int bc_unlock_dev(ALG_SERV Alg);// process' pid will be removed from driver's table if (drop_pid != 0) extern int bc_get_priv(ALG_SERV Alg, unsigned long drop_pid);// flush device's mount refcount to enable alarm umount extern int bc_force_unlock(ALG_SERV Alg);// check if disk activity has been detected since last same callextern int bc_check_activity(ALG_SERV Alg, long *result);*/#ifdef CPLUSPLUS}#endif#endif /* __ALG_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -