資源簡介
openssl 引擎的實例,使用pkcs11做了一個引擎,包含測試代碼
代碼片段和文件信息
/*****************************************
pkcs11?engine?demo
filename:enginep11.c
????date:2005.08.12
by?eboy(eboymcy@163.com)
*****************************************/
#include?
#include?
#include?
#include?
#include?
#include?
#include?“enginep11.h“
/****************************************************************************
?* RSA?functions *
*****************************************************************************/
static?int?p11_public_encrypt(int?len?const?unsigned?char?*from
?unsigned?char?*to?RSA?*rsa?int?padding)
{
printf(“\n**public_encrypt調用到自定義接口.測試成功!***\n\n“);
return?0;
}
static?int?p11_private_decrypt(int?len?const?un
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2005-08-12?11:29??pkcs11\
?????目錄???????????0??2005-08-12?11:29??pkcs11\Debug\
?????文件??????204869??2005-08-12?11:27??pkcs11\Debug\engine_p11.dll
?????文件????????3129??2005-08-12?11:26??pkcs11\enginep11.c
?????文件????????2274??2005-08-12?11:27??pkcs11\enginep11.h
?????文件??????545044??2005-07-04?09:05??pkcs11\libeay32.lib
?????文件????????4287??2005-08-12?11:29??pkcs11\pkcs11.dsp
?????文件?????????727??2005-08-12?10:15??pkcs11\pkcs11.dsw
?????文件???????50176??2005-08-12?11:29??pkcs11\pkcs11.ncb
?????文件??????263680??2005-08-12?11:29??pkcs11\pkcs11.opt
?????文件????????1399??2005-08-12?11:27??pkcs11\pkcs11.plg
?????目錄???????????0??2005-08-12?11:29??pkcs11\test\
?????目錄???????????0??2005-08-12?11:29??pkcs11\test\Debug\
?????文件??????155716??2005-08-12?11:27??pkcs11\test\Debug\test.exe
?????文件??????????86??2005-08-12?10:17??pkcs11\test\enginep11.h
?????文件????????2014??2005-08-12?10:14??pkcs11\test\engine_p11.lib
?????文件??????545044??2005-07-04?09:05??pkcs11\test\libeay32.lib
?????文件????????1425??2005-08-12?11:27??pkcs11\test\test.c
?????文件????????4458??2005-08-12?11:29??pkcs11\test\test.dsp
?????文件????????1473??2005-08-12?11:27??pkcs11\test\test.plg
- 上一篇:ucos下的矩陣鍵盤驅動
- 下一篇:樹節點二叉樹的遍歷運算.doc
評論
共有 條評論