资源简介
OPENSSL算法库之rc4算法使用例子
openssl版本1.0.1e
代码片段和文件信息
#define APPlink_STDIN 1
#define APPlink_STDOUT 2
#define APPlink_STDERR 3
#define APPlink_FPRINTF 4
#define APPlink_FGETS 5
#define APPlink_FREAD 6
#define APPlink_FWRITE 7
#define APPlink_FSETMOD 8
#define APPlink_FEOF 9
#define APPlink_FCLOSE 10 /* should not be used */
#define APPlink_FOPEN 11 /* solely for completeness */
#define APPlink_FSEEK 12
#define APPlink_FTELL 13
#define APPlink_FFLUSH 14
#define APPlink_FERROR 15
#define APPlink_CLEARERR 16
#define APPlink_FILENO 17 /* to be used with below */
#define APPlink_OPEN 18 /* formally can‘t be used as flags can vary */
#define APPlink_READ 19
#define APPlink_WRITE 20
#define APPlink_LSEEK 21
#define APPlink_CLOSE 22
#define APPlink_MAX 22 /* always same as last macro */
#ifndef APPMACROS_ONLY
#include
#include
#include
static void *app_stdin(void) { return stdin; }
static void *app_stdout(void) { return stdout; }
static void *app_stderr(void) { return stderr; }
static int app_feof(FILE *fp) { return feof(fp); }
static int app_ferror(FILE *fp) { return ferror(fp); }
static void app_clearerr(FILE *fp) { clearerr(fp); }
static int app_fileno(FILE *fp) { return _fileno(fp); }
static int app_fsetmod(FILE *fpchar mod)
{ return _setmode (_fileno(fp)mod==‘b‘?_O_BINARY:_O_TEXT); }
#ifdef __cplusplus
extern “C“ {
#endif
__declspec(dllexport)
void **
#if defined(__BORLANDC__)
__stdcall /* __stdcall appears to be the only way to get the name
* decoration right with Borland C. Otherwise it works
* purely incidentally as we pass no parameters. */
#else
__cdecl
#endif
OPENSSL_Applink(void)
{ static int once=1;
static void *OPENSSL_ApplinkTable[APPlink_MAX+1]={(void *)APPlink_MAX};
if (once)
{ OPENSSL_ApplinkTable[APPlink_STDIN] = app_stdin;
OPENSSL_ApplinkTable[APPlink_STDOUT] = app_stdout;
OPENSSL_ApplinkTable[APPlink_STDERR] = app_stderr;
OPENSSL_ApplinkTable[APPlink_FPRINTF] = fprintf;
OPENSSL_ApplinkTable[APPlink_FGETS] = fgets;
OPENSSL_ApplinkTable[APPlink_FREAD] = fread;
OPENSSL_ApplinkTable[APPlink_FWRITE] = fwrite;
OPENSSL_ApplinkTable[APPlink_FSETMOD] = app_fsetmod;
OPENSSL_ApplinkTable[APPlink_FEOF] = app_feof;
OPENSSL_ApplinkTable[APPlink_FCLOSE] = fclose;
OPENSSL_ApplinkTable[APPlink_FOPEN] = fopen;
OPENSSL_ApplinkTable[APPlink_FSEEK] = fseek;
OPENSSL_ApplinkTable[APPlink_FTELL] = ftell;
OPENSSL_ApplinkTable[APPlink_FFLUSH] = fflush;
OPENSSL_ApplinkTable[APPlink_FERROR] = app_ferror;
OPENSSL_ApplinkTable[APPlink_CLEARERR] = app_clearerr;
OPENSSL_ApplinkTable[APPlink_FILENO] = app_fileno;
OPENSSL_ApplinkTable[APPlink_OPEN] = _open;
OPENSSL_ApplinkTable[APPlink_READ] = _read;
OPENSSL_ApplinkTable[APPlink_WRITE] = _write;
OPENSSL_ApplinkTable[APPlink_LSEEK] = _lseek;
OPENSSL_ApplinkTable[APPlink_CLOSE] = _close;
once = 0;
}
return OPENSSL_ApplinkTable;
}
#ifdef __cplusplus
}
#endif
#endif
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5507 2013-03-07 12:18 rc4Sample\include\openssl\aes.h
文件 2892 2013-03-07 12:18 rc4Sample\include\openssl\appli
文件 52190 2013-03-07 12:18 rc4Sample\include\openssl\asn1.h
文件 30092 2013-03-07 12:18 rc4Sample\include\openssl\asn1t.h
文件 19143 2013-03-07 12:18 rc4Sample\include\openssl\asn1_mac.h
文件 32987 2013-03-07 12:18 rc4Sample\include\openssl\bio.h
文件 5143 2013-03-07 12:18 rc4Sample\include\openssl\blowfish.h
文件 36185 2013-03-07 12:18 rc4Sample\include\openssl\bn.h
文件 4646 2013-03-07 12:18 rc4Sample\include\openssl\buffer.h
文件 4956 2013-03-07 12:18 rc4Sample\include\openssl\camellia.h
文件 4492 2013-03-07 12:18 rc4Sample\include\openssl\cast.h
文件 3244 2013-03-07 12:18 rc4Sample\include\openssl\cmac.h
文件 19927 2013-03-07 12:18 rc4Sample\include\openssl\cms.h
文件 1978 2013-03-07 12:18 rc4Sample\include\openssl\comp.h
文件 9848 2013-03-07 12:18 rc4Sample\include\openssl\conf.h
文件 4080 2013-03-07 12:18 rc4Sample\include\openssl\conf_api.h
文件 24337 2013-03-07 12:18 rc4Sample\include\openssl\crypto.h
文件 10849 2013-03-07 12:18 rc4Sample\include\openssl\des.h
文件 18238 2013-03-07 12:18 rc4Sample\include\openssl\des_old.h
文件 9979 2013-03-07 12:18 rc4Sample\include\openssl\dh.h
文件 12057 2013-03-07 12:18 rc4Sample\include\openssl\dsa.h
文件 18095 2013-03-07 12:18 rc4Sample\include\openssl\dso.h
文件 8026 2013-03-07 12:18 rc4Sample\include\openssl\dtls1.h
文件 540 2013-03-07 12:18 rc4Sample\include\openssl\ebcdic.h
文件 46413 2013-03-07 12:18 rc4Sample\include\openssl\ec.h
文件 4682 2013-03-07 12:18 rc4Sample\include\openssl\ecdh.h
文件 10510 2013-03-07 12:18 rc4Sample\include\openssl\ecdsa.h
文件 40585 2013-03-07 12:18 rc4Sample\include\openssl\engine.h
文件 15862 2013-03-07 12:18 rc4Sample\include\openssl\err.h
文件 52791 2013-03-07 12:18 rc4Sample\include\openssl\evp.h
............此处省略64个文件信息
相关资源
- StarRat源码 功能强大的远控
- SPI网络数据包拦截程序源码
- 人脸识别三套源码含小程序源码亲测
- 传智播客IOS视频源码
- 单周期源码.zip
- 完整版APDS9960手势识别源码
- 趣味桌球源码-CocosCreator
- 微金所网站案例源码
- GEC210 Linux驱动源码
- ZXing二维码扫描简洁版中文注释
- Dlion-开源固件源码V03版本及说明.rar
- 易语言多开源码
- 实验室设备管理系统(课程设计)源
- 基于winpcap的网络入侵检测系统(源码
- darknet v1
- 音频信号分析仪的FPGA源码
- QQ堂源码
- 南方数据1.0源码
- 六机器人STM32F103控制程序源码
- 蜘蛛机器人STM32F103控制程序源码
- 基于RFID的学生门禁系统C源码、说明文
- EQ开源.e 开源市面上某防封源码.开源
- 精通CSS第2版源码
- 冒险岛防挂防WZ登录器源码
- 基于dash协议的视频自适应源码
- 单点登录实现源码
- 自适应IT企业外包公司的官网源码
- 人脸识别源码,facenet,深度学习
- 匿名科创领航者源码
- 大淘客CMS加淘口令和底部导航菜单源
评论
共有 条评论