亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pgp.h

?? 老外寫的加密庫cryptlib(版本3.1)
?? H
字號:
/****************************************************************************
*																			*
*							PGP Definitions Header File						*
*						Copyright Peter Gutmann 1996-2003					*
*																			*
****************************************************************************/

#ifndef _PGP_DEFINED

#define _PGP_DEFINED

#ifndef _STREAM_DEFINED
  #if defined( INC_ALL )
	#include "stream.h"
  #elif defined INC_CHILD
	#include "../misc/stream.h"
  #else
	#include "misc/stream.h"
  #endif /* Compiler-specific includes */
#endif /* _STREAM_DEFINED */

/* PGP packet types, encoded into the CTB */

#define PGP_PACKET_PKE			1	/* PKC-encrypted session key */
#define PGP_PACKET_SIGNATURE	2	/* Signature */
#define PGP_PACKET_SKE			3	/* Secret-key-encrypted session key */
#define PGP_PACKET_SIGNATURE_ONEPASS 4	/* One-pass signature */
#define PGP_PACKET_SECKEY	5		/* Secret key */
#define PGP_PACKET_PUBKEY	6		/* Public key */
#define PGP_PACKET_SECKEY_SUB 7		/* Secret key subkey */
#define PGP_PACKET_COPR		8		/* Compressed data */
#define PGP_PACKET_ENCR		9		/* Encrypted data */
#define PGP_PACKET_MARKER	10		/* Obsolete marker packet */
#define PGP_PACKET_DATA		11		/* Raw data */
#define PGP_PACKET_TRUST	12		/* Trust information */
#define PGP_PACKET_USERID	13		/* Userid */
#define PGP_PACKET_PUBKEY_SUB 14	/* Public key subkey */
#define PGP_PACKET_USERATTR	17		/* User attributes */
#define PGP_PACKET_ENCR_MDC	18		/* Encrypted data with MDC */
#define PGP_PACKET_MDC		19		/* MDC */

/* PGP signature subpacket types */

#define PGP_SUBPACKET_TIME	2		/* Signing time */
#define PGP_SUBPACKET_KEYID	16		/* Key ID */
#define PGP_SUBPACKET_TYPEANDVALUE 20	/* Type-and-value pairs */
#define PGP_SUBPACKET_LAST	29		/* Last valid subpacket type */

/* A special-case packet type that denotes a signature that follows on from 
   a one-pass signature packet.  When generating a signature of this type PGP
   splits the information in the normal signature packet across the one-pass
   signature packet and the signature packet itself, so we have to read the 
   data on two parts, with half the information in the one-pass packet and 
   the other half in the signature packet */

#define PGP_PACKET_SIGNATURE_SPECIAL	1002

/* PGP CTB information.  All CTBs have the MSB set, and OpenPGP CTBs have the
   next-to-MSB set.  We also have a special-case CTB which is used for
   indefinite-length compressed data */

#define PGP_CTB				0x80	/* PGP 2.x CTB template */
#define PGP_CTB_OPENPGP		0xC0	/* OpenPGP CTB template */
#define PGP_CTB_COMPRESSED	0xA3	/* Compressed indef-length data */

/* A macro to extract the packet type from the full CTB */

#define getCTB( ctb )		( ( ( ctb & PGP_CTB_OPENPGP ) == PGP_CTB_OPENPGP ) ? \
							  ( ctb & 0x3F ) : ( ( ctb >> 2 ) & 0x0F ) )

/* A macro to check whether a packet is a private packet type */

#define isPrivatePacket( type ) \
							( ( type ) >= 60 && ( type ) <= 63 )

/* Version information */

#define PGP_VERSION_2		2		/* Version number byte for PGP 2.0 */
#define PGP_VERSION_3		3		/* Version number byte for legal-kludged PGP 2.0 */
#define PGP_VERSION_OPENPGP	4		/* Version number for OpenPGP */

/* Public-key algorithms */

#define PGP_ALGO_RSA		1		/* RSA algorithm */
#define PGP_ALGO_RSA_ENCRYPT 2		/* RSA encrypt-only */
#define PGP_ALGO_RSA_SIGN	3		/* RSA sign-only */
#define PGP_ALGO_ELGAMAL	16		/* ElGamal algorithm */
#define PGP_ALGO_DSA		17		/* DSA signature algorithm */

/* Conventional encryption algorithms */

#define PGP_ALGO_NONE		0		/* No CKE algorithm */
#define PGP_ALGO_IDEA		1		/* IDEA cipher */
#define PGP_ALGO_3DES		2		/* Triple DES */
#define PGP_ALGO_CAST5		3		/* CAST-128 */
#define PGP_ALGO_BLOWFISH	4		/* Blowfish */
#define PGP_ALGO_SAFERSK	5		/* Safer-SK */
#define PGP_ALGO_RESERVED1	6		/* Reserved/never used */
#define PGP_ALGO_AES_128	7		/* AES with 128-bit key */
#define PGP_ALGO_AES_192	8		/* AES with 192-bit key */
#define PGP_ALGO_AES_256	9		/* AES with 256-bit key */
#define PGP_ALGO_TWOFISH	10		/* Twofish */

/* Hash algorithms */

#define PGP_ALGO_MD5		1		/* MD5 */
#define PGP_ALGO_SHA		2		/* SHA-1 */
#define PGP_ALGO_RIPEMD160	3		/* RIPEMD-160 */
#define PGP_ALGO_RESERVED2	4		/* Reserved/never used */
#define PGP_ALGO_MD2		5		/* MD2 */
#define PGP_ALGO_RESERVED3	6		/* Reserved/never used (Tiger/192) */
#define PGP_ALGO_RESERVED4	7		/* Reserved/never used (Haval) */
#define PGP_ALGO_SHA2_256	8		/* SHA-2 256bit */
#define PGP_ALGO_SHA2_384	9		/* SHA-2 384bit */
#define PGP_ALGO_SHA2_512	10		/* SHA-2 512bit */

/* Compression algorithms */

#define PGP_ALGO_ZIP		1		/* ZIP compression */
#define PGP_ALGO_ZLIB		2		/* zlib compression */

/* S2K specifier */

#define PGP_S2K				0xFF	/* Standard S2K */
#define PGP_S2K_HASHED		0xFE	/* S2K with hashed key */

/* Signed data types */

#define PGP_SIG_DATA		0x00	/* Binary data */
#define PGP_SIG_TEXT		0x01	/* Canonicalised text data */
#define	PGP_SIG_CERT0		0x10	/* Key certificate, unknown assurance */
#define	PGP_SIG_CERT1		0x11	/* Key certificate, no assurance */
#define	PGP_SIG_CERT2		0x12	/* Key certificate, casual assurance */
#define	PGP_SIG_CERT3		0x13	/* Key certificate, strong assurance */
#define PGP_SIG_KRL			0x20	/* Key revocation */
#define PGP_SIG_CRL			0x30	/* Certificate revocation */
#define	PGP_SIG_TS			0x40	/* Timestamp signature */

/* The maximum size of an MPI (4096 bits) */

#define PGP_MAX_MPISIZE		512

/* The maximum size of a PGP user ID.  Note that this is larger than the
   cryptlib-wide maximum user ID size */

#define PGP_MAX_USERIDSIZE	256

/* The size of the IV used for PGP's weird CFB mode */

#define PGP_IVSIZE			8

/* The size of the salt used for password hashing and the number of 
   setup "iterations".  This isn't a true iteration count but the number of 
   salt+password bytes hashed, and in fact it isn't even that but the
   actual count scaled by dividing it by 64, which is how PGP encodes the
   count in the data packet */

#define PGP_SALTSIZE		8
#define PGP_ITERATIONS		1024

/* Various PGP packet header sizes, used to estimate how much data we still 
   need to process */

#define PGP_MIN_HEADER_SIZE	2		/* CTB + length */
#define PGP_MAX_HEADER_SIZE	6		/* CTB + 0xFF + 4-byte length */
#define PGP_DATA_HEADER		"b\x00\x00\x00\x00\x00"
#define PGP_DATA_HEADER_SIZE ( 1 + 1 + 4 )
#define PGP_MDC_PACKET_SIZE	( 1 + 1 + 20 )	/* Size of MDC packet */

/* Since PGP only provides a subset of cryptlib's algorithm types and uses
   different identifiers, we have to both check that there's a mapping
   possible and map from one to the other.  When going from PGP -> cryptlib
   we specify both the algorithm ID and the algorithm class we expect to 
   find it in to allow type checking */

typedef enum {
	PGP_ALGOCLASS_NONE,		/* No algorithm class */
	PGP_ALGOCLASS_CRYPT,	/* Conventional encryption algorithms */
	PGP_ALGOCLASS_PWCRYPT,	/* Password-based encryption algorithms */
	PGP_ALGOCLASS_PKCCRYPT,	/* PKC algorithms */
	PGP_ALGOCLASS_SIGN,		/* Signature algorithms */
	PGP_ALGOCLASS_HASH,		/* Hash algorithms */
	PGP_ALGOCLASS_LAST		/* Last possible algorithm class */
	} PGP_ALGOCLASS_TYPE;

CRYPT_ALGO_TYPE pgpToCryptlibAlgo( const int pgpAlgo, 
								   const PGP_ALGOCLASS_TYPE pgpAlgoClass );
int cryptlibToPgpAlgo( const CRYPT_ALGO_TYPE cryptlibAlgo );

/* Prototypes for functions in pgp_misc.c */

int pgpPasswordToKey( CRYPT_CONTEXT cryptContext, const char *password,
					  const int passwordLength, 
					  const CRYPT_ALGO_TYPE hashAlgo, const BYTE *salt, 
					  const int iterations );
int pgpProcessIV( const CRYPT_CONTEXT iCryptContext, BYTE *ivInfo,
				  const int ivSize, const BOOLEAN isEncrypt, 
				  const BOOLEAN resyncIV );
int pgpReadMPI( STREAM *stream, BYTE *data );
int pgpWriteMPI( STREAM *stream, const BYTE *data, const int length );
#define sizeofMPI( length )		( ( length ) + 2 )

#endif /* _PGP_DEFINED */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩黄色在线观看| 久久新电视剧免费观看| 亚洲在线中文字幕| 欧美性猛片aaaaaaa做受| 五月天网站亚洲| 日韩手机在线导航| 国产精品99久久久久久久女警| 久久久久99精品国产片| av一区二区三区黑人| 亚洲福利视频三区| 日韩免费视频一区| 成人国产电影网| 亚洲福中文字幕伊人影院| 精品999在线播放| 97国产一区二区| 日韩精品电影在线观看| 久久精品亚洲一区二区三区浴池| 成人免费视频一区| 日韩精品电影在线| 国产精品理论在线观看| 欧美日韩在线三级| 国内精品视频一区二区三区八戒| 亚洲免费观看在线观看| 日韩一区二区麻豆国产| 99视频精品免费视频| 日韩国产一二三区| 亚洲色图制服诱惑| 精品国产百合女同互慰| 一本一道波多野结衣一区二区| 久久精品二区亚洲w码| 亚洲精品中文在线影院| 精品捆绑美女sm三区| 在线亚洲一区观看| 国产成人在线观看免费网站| 亚洲国产毛片aaaaa无费看 | 久久九九99视频| 91美女在线观看| 国产真实乱偷精品视频免| 亚洲成人av在线电影| 国产精品免费久久| 日韩精品综合一本久道在线视频| 色综合久久六月婷婷中文字幕| 经典一区二区三区| 午夜视频一区二区| 综合色中文字幕| 国产午夜精品一区二区三区嫩草| 欧美久久一区二区| 91久久一区二区| 成人黄色小视频| 国产精品一区免费在线观看| 欧美aaa在线| 亚洲国产成人av好男人在线观看| 国产精品欧美综合在线| www国产精品av| 日韩三级在线观看| 欧美日韩国产乱码电影| 欧美主播一区二区三区| 色乱码一区二区三区88| 99麻豆久久久国产精品免费 | 亚洲国产精品一区二区久久| 国产精品久久三| 国产亚洲一本大道中文在线| 欧美成人伊人久久综合网| 91麻豆精品国产91久久久使用方法| 色国产精品一区在线观看| 成人app在线观看| 成人福利在线看| 成人av电影观看| 99久久777色| 99在线视频精品| 99国产精品99久久久久久| 不卡欧美aaaaa| www.成人在线| 色综合天天视频在线观看| 色综合天天综合网天天看片| 91蜜桃免费观看视频| 在线视频观看一区| 欧美丰满一区二区免费视频| 欧美日韩免费在线视频| 欧美美女一区二区在线观看| 欧美夫妻性生活| 精品久久人人做人人爽| 久久久精品人体av艺术| 国产精品美女久久久久aⅴ| 中文字幕亚洲综合久久菠萝蜜| 国产精品毛片久久久久久久| 亚洲视频一区二区免费在线观看| 亚洲人成网站影音先锋播放| 亚洲午夜久久久久久久久电影网 | 一本一道综合狠狠老| 精品视频在线视频| 欧美一区二区在线播放| 精品国产亚洲一区二区三区在线观看 | 国产视频一区不卡| 亚洲视频网在线直播| 天堂av在线一区| 激情综合五月天| 成人影视亚洲图片在线| 在线中文字幕一区| 精品少妇一区二区三区在线播放| 国产亚洲欧美日韩在线一区| 亚洲啪啪综合av一区二区三区| 午夜不卡av在线| 国产一区二区福利视频| 91麻豆高清视频| 日韩一级片网址| 中文字幕乱码久久午夜不卡| 一区二区日韩av| 久久精品国产一区二区三区免费看| 成人一级黄色片| 欧美肥妇毛茸茸| 欧美韩日一区二区三区四区| 亚洲一区在线电影| 国产精品一区一区三区| 欧美日韩五月天| 欧美国产日产图区| 天使萌一区二区三区免费观看| 国产91丝袜在线播放0| 欧美日韩精品综合在线| 日本一区二区免费在线| 日韩精品亚洲专区| 色综合久久中文综合久久牛| 日韩三级在线免费观看| 一区二区三区鲁丝不卡| 国产成人在线影院| 日韩精品影音先锋| 亚洲国产日韩a在线播放性色| 国产91精品欧美| 91精品国产aⅴ一区二区| 亚洲图片欧美激情| 国产精品一区二区黑丝| 91精品国产综合久久久蜜臀粉嫩| 中文字幕在线一区免费| 精品中文字幕一区二区| 欧美日韩电影一区| 亚洲精品免费一二三区| 成人一区二区三区视频在线观看| 正在播放一区二区| 有码一区二区三区| 成人高清在线视频| 欧美激情一二三区| 国产精品一区免费在线观看| 日韩一区二区免费在线电影| 午夜精品在线看| 欧洲另类一二三四区| 中文字幕在线不卡视频| 国产乱淫av一区二区三区| 欧美成人一级视频| 免费看日韩a级影片| 欧美精品一二三四| 亚洲chinese男男1069| 色狠狠桃花综合| 亚洲综合小说图片| 一本色道久久综合精品竹菊| 中文字幕制服丝袜成人av | 欧美美女视频在线观看| 亚洲午夜在线视频| 在线免费亚洲电影| 亚洲伦在线观看| 一本色道久久加勒比精品| 亚洲欧美一区二区三区国产精品| av在线不卡观看免费观看| 国产精品天干天干在观线| 国产精品综合久久| 国产日本欧美一区二区| 国产成人精品免费网站| 国产亲近乱来精品视频| 国产精品91xxx| 国产精品乱码人人做人人爱| 不卡一卡二卡三乱码免费网站 | 亚洲国产婷婷综合在线精品| 色999日韩国产欧美一区二区| 亚洲女女做受ⅹxx高潮| 欧美午夜精品久久久久久孕妇 | 亚洲视频在线观看一区| 色999日韩国产欧美一区二区| 亚洲国产一区视频| 欧美精品久久99| 久久精品国产77777蜜臀| 久久视频一区二区| 成人美女视频在线看| 亚洲精品国产无套在线观| 欧美日韩中文字幕一区二区| 蜜臀av一区二区三区| 国产色一区二区| 色综合久久天天| 日韩电影免费在线| 久久色视频免费观看| 9l国产精品久久久久麻豆| 天天综合日日夜夜精品| 精品免费视频.| 成人黄色在线网站| 亚洲国产精品影院| 久久亚洲综合色一区二区三区| 成人精品在线视频观看| 亚洲黄色小视频| www久久久久| 色婷婷综合久久久久中文| 免费在线一区观看| 中文字幕永久在线不卡|