cryptoki_ext.h

来自「PKCS#11 读取USB KEY证书」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef __CRYPTOKI_EXT_H__
#define __CRYPTOKI_EXT_H__

#if defined(WIN32)
#include "cryptoki_win32.h"
#elif defined(linux) || defined(macintosh)
#include "cryptoki_linux.h"
#else
#	error "Support WIN32/Linux/MacOSx only. :)"
#endif

//////////////////////////////////////////////////////////////////////////
// Container and Key Index
// to process the container name, add a defined property to PKCS#11
#define CKO_CONTAINER_NAME		(CKO_VENDOR_DEFINED + 0x0043544E)
#define CKA_CONTAINER_NAME 		(CKA_VENDOR_DEFINED + 0x00455053)
#define CKA_REAL_KEY_INDEX		(CKA_VENDOR_DEFINED + 0x00455054)

#define CKR_CONTAINER_EXIST		CKR_VENDOR_DEFINED + 0x0043544E
#define CKR_CONTAINER_NOT_EXIST	CKR_VENDOR_DEFINED + 0x0043544F


#endif //__CRYPTOKI_EXT_H__

⌨️ 快捷键说明

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