⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csp_pkcs_const.h

📁 信息安全开发使用的
💻 H
字号:
/****************************************************************************
* library : pkcs_csp.dll
* Purpose : It is a cryptographic service provider which is an independent 
* software module that actually performs cryptography algorithms for 
* authentication, encoding, and encryption.
* This DLL can be interfaced on any PKCS#11 module.  
*
* Copyright (C) 2003 Ilex Syst鑝es Informatiques
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact :
* Ilex 
* 51 boulevard Voltaire
* 92600 Asni鑢es-sur-Seine
* pkizy@ilex.fr
*
* Author: Delouvrier Antoine
*
*******************************************************************************/

/*
%----------------------------------------------------------------------------
% PROJECT : CSP_PKCS
%
% MODULE : csp_pkcs_const
%
% VERSION : 1.00
%
% FILE : csp_pkcs_const.h
%
% cryptool: constants being used for the csp
%----------------------------------------------------------------------------
% Version 1.00
% 
% CPX-31/03/2003-Creation
%----------------------------------------------------------------------------
*/ 

#include <windows.h>




/*Parameters of the csp*/
/* name of default container*/
const CHAR DEFAULT_CONTAINER[] ="pkcs_csp";
/* name of the CSP */
const CHAR PROVIDER_NAME[]="pkcs_csp";
/* type of implementation of the CSP */
const DWORD TYPE_IMPLEMENTATION=CRYPT_IMPL_MIXED;
/* version of CSP*/
const PROVIDER_VERSION (0x00000100);

/* DER Encoded of digestinfo for the algo MD2 */
const BYTE derEncodedMD2[] =
{	0x30, 0x20, 0x30, 0x0c, 0x06, 0x08, 0x2a, 0x86, 
    0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02, 0x05, 0x00, 
    0x04, 0x10
};

/* DER Encoded of digestinfo for the algo MD5 */
const BYTE derEncodedMD5[] =
{
	0x30, 0x20, 0x30, 0x0c, 0x06, 0x08, 0x2a, 0x86, 
    0x48, 0x86, 0xf7, 0x0d, 0x02, 0x05, 0x05, 0x00, 
    0x04, 0x10
};

/* DER Encoded of digestinfo for the algo SHA1 */
const BYTE derEncodedSHA1[] =
{
	0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e,
    0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14
};

⌨️ 快捷键说明

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