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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cryptlib.h

?? #include "pch.h" #include "base64.h" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENG
?? H
?? 第 1 頁 / 共 2 頁
字號:
// cryptlib.h - written and placed in the public domain by Wei Dai

// This file contains the declarations for the abstract base
// classes that provide a uniform interface to this library.

#ifndef CRYPTOPP_CRYPTLIB_H
#define CRYPTOPP_CRYPTLIB_H

#include "config.h"
#include <exception>
#include <string>

NAMESPACE_BEGIN(CryptoPP)

/// base class for all exceptions thrown by Crypto++
class Exception : public std::exception
{
public:
	explicit Exception(const std::string& s) : m_what(s) {}
	virtual ~Exception() throw() {}
    const char *what() const throw() {return (m_what.c_str());}

private:
	std::string m_what;
};

/// used to specify a direction for a cipher to operate in (encrypt or decrypt)
enum CipherDir {
	///
	ENCRYPTION, 
	///
	DECRYPTION};


/// abstract base class for block ciphers

/** All classes derived from BlockTransformation are block ciphers
	in ECB mode (for example the DESEncryption class), which are stateless.
	These classes should not be used directly, but only in combination with
	a mode class (see \Ref{CipherMode}).

	Note: BlockTransformation objects may assume that pointers to input and
	output blocks are aligned on 32-bit word boundaries.
*/
class BlockTransformation
{
public:
	///
	virtual ~BlockTransformation() {}

	/// encrypt or decrypt one block in place
	//* Precondition: size of inoutBlock == BlockSize().
	virtual void ProcessBlock(byte *inoutBlock) const =0;

	/// encrypt or decrypt one block, may assume inBlock != outBlock
	//* Precondition: size of inBlock and outBlock == BlockSize().
	virtual void ProcessBlock(const byte *inBlock, byte *outBlock) const =0;

	/// block size of the cipher in bytes
	virtual unsigned int BlockSize() const =0;
};


/// abstract base class for stream ciphers

class StreamCipher
{
public:
	///
	virtual ~StreamCipher() {}

	/// encrypt or decrypt one byte
	virtual byte ProcessByte(byte input) =0;

	/// encrypt or decrypt an array of bytes of specified length in place
	virtual void ProcessString(byte *inoutString, unsigned int length);
	/// encrypt or decrypt an array of bytes of specified length, may assume inString != outString
	virtual void ProcessString(byte *outString, const byte *inString, unsigned int length);
};

///	abstract base class for random access stream ciphers

class RandomAccessStreamCipher : public virtual StreamCipher
{
public:
	///
	virtual ~RandomAccessStreamCipher() {}
	/*/ specify that the next byte to be processed is at absolute position n
		in the plaintext/ciphertext stream */
	virtual void Seek(unsigned long n) =0;
};

///	abstract base class for random number generators
/** All return values are uniformly distributed over the range specified.
*/
class RandomNumberGenerator
{
public:
	///
	virtual ~RandomNumberGenerator() {}

	/// generate new random byte and return it
	virtual byte GetByte() =0;

	/// generate new random bit and return it
	/** Default implementation is to call GetByte() and return its parity. */
	virtual unsigned int GetBit();

	/// generate a random 32 bit word in the range min to max, inclusive
	virtual word32 GetLong(word32 a=0, word32 b=0xffffffffL);
	/// generate a random 16 bit word in the range min to max, inclusive
	virtual word16 GetShort(word16 a=0, word16 b=0xffff)
		{return (word16)GetLong(a, b);}

	/// generate random array of bytes
	//* Default implementation is to call GetByte size times.
	virtual void GetBlock(byte *output, unsigned int size);
};

/// randomly shuffle the specified array, resulting permutation is uniformly distributed
template <class T> void Shuffle(RandomNumberGenerator &rng, T *array, unsigned int size)
{
	while (--size)
		std::swap(array[size], array[(unsigned int)rng.GetLong(0, size)]);
}

/// abstract base class for hash functions
/** HashModule objects are stateful.  They are created in an initial state,
	change state as Update() is called, and return to the initial
	state when Final() is called.  This interface allows a large message to
	be hashed in pieces by calling Update() on each piece followed by
	calling Final().
*/
class HashModule
{
public:
	///
	virtual ~HashModule() {}

	/// process more input
	virtual void Update(const byte *input, unsigned int length) =0;

	/*/ calculate hash for the current message (the concatenation of all 
		inputs passed in via Update()), then reinitialize the object */
	//* Precondition: size of digest == DigestSize().
	virtual void Final(byte *digest) =0;

	/// size of the hash returned by Final()
	virtual unsigned int DigestSize() const =0;

	/// use this if your input is short and you don't want to call Update() and Final() seperately
	virtual void CalculateDigest(byte *digest, const byte *input, int length)
		{Update(input, length); Final(digest);}
};

/// abstract base class for message authentication codes

/** The main differences between a MAC and an hash function (in terms of
	programmatic interface) is that a MAC is keyed, and that calculating
	a MAC for the same message twice may produce two different results so
	verifying a MAC may not be simply recalculating it and doing a bitwise
	comparison.
*/
class MessageAuthenticationCode : public virtual HashModule
{
public:
	///
	virtual ~MessageAuthenticationCode() {}

	/// verify that mac is a valid MAC for the current message, then reinitialize the object
	/** Default implementation is to call Final() and do a bitwise comparison
		between its output and mac. */
	virtual bool Verify(const byte *mac);

	/// use this if your input is short and you don't want to call Update() and Verify() seperately
	virtual bool VerifyMAC(const byte *mac, const byte *input, int length)
		{Update(input, length); return Verify(mac);}
};

/// abstract base class for buffered transformations

/** BufferedTransformation is a generalization of \Ref{BlockTransformation},
	\Ref{StreamCipher}, and \Ref{HashModule}.

	A buffered transformation is an object that takes a stream of bytes 
	as input (this may be done in stages), does some computation on them, and
	then places the result into an internal buffer for later retrieval.  Any
	partial result already in the output buffer is not modified by further
	input.
	
	Computation is generally done as soon as possible, but some buffering
	on the input may be done for performance reasons.
*/
class BufferedTransformation
{
public:
	///
	virtual ~BufferedTransformation() {}

	//@Man: INPUT
	//@{
		/// input a byte for processing
		virtual void Put(byte inByte) =0;
		/// input multiple bytes
		virtual void Put(const byte *inString, unsigned int length) =0;
		/// signal that no more input is available
		virtual void InputFinished() {}

		/// input a 16-bit word, big-endian or little-endian depending on highFirst
		void PutShort(word16 value, bool highFirst=true);
		/// input a 32-bit word
		void PutLong(word32 value, bool highFirst=true);
	//@}

	//@Man: RETRIEVAL
	//@{
		/// returns number of bytes that is currently ready for retrieval
		/** All	retrieval functions return the actual number of bytes
			retrieved, which is the lesser of the request number and
			MaxRetrieveable(). */
		virtual unsigned long MaxRetrieveable() =0;

		/// try to retrieve a single byte
		virtual unsigned int Get(byte &outByte) =0;
		/// try to retrieve multiple bytes
		virtual unsigned int Get(byte *outString, unsigned int getMax) =0;

		/// try to retrieve a 16-bit word, big-endian or little-endian depending on highFirst
		int GetShort(word16 &value, bool highFirst=true);
		/// try to retrieve a 32-bit word
		int GetLong(word32 &value, bool highFirst=true);

		/// move all of the buffered output to target as input
		virtual void TransferTo(BufferedTransformation &target);
		/// same as above but only transfer up to transferMax bytes
		virtual unsigned int TransferTo(BufferedTransformation &target, unsigned int transferMax);

		/// peek at the next byte without removing it from the output buffer
		virtual unsigned int Peek(byte &outByte) const =0;

		/// discard some bytes from the output buffer
		unsigned int Skip(unsigned int skipMax);
	//@}

	//@Man: ATTACHMENT
	//@{
		/** Some BufferedTransformation objects (e.g. \Ref{Filter} objects)
			allow other BufferedTransformation objects to be attached.  When
			this is done, the first object instead of buffering its output,
			sents that output to the attached object as input.  See the
			documentation for the \Ref{Filter} class for the details.
		*/
		///
		virtual bool Attachable() {return false;}
		///
		virtual void Detach(BufferedTransformation *p = 0) {}	// NULL is undefined at this point
		///
		virtual void Attach(BufferedTransformation *) {}
		/// call InputFinished() for all attached objects
		virtual void Close() {InputFinished();}
	//@}
};

/// abstract base class for public-key encryptors and decryptors

/** This class provides an interface common to encryptors and decryptors
	for querying their plaintext and ciphertext lengths.
*/
class PK_CryptoSystem
{
public:
	///
	virtual ~PK_CryptoSystem() {}

	/// maximum length of plaintext for a given ciphertext length
	//* This function returns 0 if cipherTextLength is not valid (too long or too short).
	virtual unsigned int MaxPlainTextLength(unsigned int cipherTextLength) const =0;

	/// calculate length of ciphertext given length of plaintext
	//* This function returns 0 if plainTextLength is not valid (too long).
	virtual unsigned int CipherTextLength(unsigned int plainTextLength) const =0;
};

///	abstract base class for public-key encryptors

/** An encryptor is also a public encryption key.  It contains both the
	key and the algorithm to perform the encryption.
*/
class PK_Encryptor : public virtual PK_CryptoSystem
{
public:
	/// encrypt a byte string
	/** Preconditions:
			\begin{itemize} 
			\item CipherTextLength(plainTextLength) != 0 (i.e., plainText isn't too long)
			\item size of cipherText == CipherTextLength(plainTextLength)
			\end{itemize}
	*/
	virtual void Encrypt(RandomNumberGenerator &rng, const byte *plainText, unsigned int plainTextLength, byte *cipherText) =0;
};

///	abstract base class for public-key decryptors

/** An decryptor is also a private decryption key.  It contains both the
	key and the algorithm to perform the decryption.
*/
class PK_Decryptor : public virtual PK_CryptoSystem
{
public:
	/// decrypt a byte string, and return the length of plaintext
	/** Precondition: size of plainText == MaxPlainTextLength(cipherTextLength)
		bytes.  
		
		The function returns the actual length of the plaintext, or 0
		if decryption fails.
	*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久蜜桃精品| 欧美日韩免费视频| 久久综合五月天婷婷伊人| 国产高清一区日本| 国产精品久久久久影院| av男人天堂一区| 国产成人亚洲精品青草天美| 久久久久青草大香线综合精品| 久久影院视频免费| 国产精品看片你懂得| 国产精品一区在线观看你懂的| 精品国产伦一区二区三区免费| 婷婷激情综合网| 国产精品视频观看| 91精品国产一区二区| 国产色一区二区| 国产毛片精品一区| 欧美老人xxxx18| 中文字幕在线不卡一区二区三区| 亚洲国产一区二区三区| 一区二区三区精品视频| 久久亚洲精精品中文字幕早川悠里 | 91年精品国产| 国产一区二区不卡老阿姨| 夜夜嗨av一区二区三区网页 | 亚洲欧美日韩国产手机在线 | 亚洲一级二级在线| 国产欧美精品一区二区色综合| 亚洲图片激情小说| 久久久久久一二三区| 欧美日韩的一区二区| 在线中文字幕不卡| 欧美亚洲综合久久| 欧美日韩视频第一区| 欧美制服丝袜第一页| 欧美日韩在线免费视频| 欧美熟乱第一页| 91精品国模一区二区三区| 欧美精品电影在线播放| 91麻豆精品国产| 精品国产一区a| 国产精品理伦片| 亚洲国产日韩一区二区| 奇米色777欧美一区二区| 久久福利资源站| 成人ar影院免费观看视频| 91在线国产福利| 欧美人与禽zozo性伦| 精品久久人人做人人爰| 国产精品视频一区二区三区不卡| 成人综合在线观看| 欧洲色大大久久| 久久久精品免费免费| 亚洲福利视频导航| 国产精品综合av一区二区国产馆| 26uuu色噜噜精品一区二区| 国产精品萝li| 天堂在线一区二区| 成人免费视频视频在线观看免费 | 麻豆免费精品视频| 99精品久久免费看蜜臀剧情介绍| 亚洲成人高清在线| 成人av资源在线观看| 日韩三级电影网址| 日日夜夜精品视频免费| 日本久久精品电影| 中文字幕视频一区| 国产在线精品一区二区不卡了 | 久久国产精品72免费观看| 在线观看欧美黄色| 亚洲天堂精品在线观看| 成人精品国产一区二区4080| 精品国产91乱码一区二区三区| 欧美写真视频网站| 亚洲欧美电影一区二区| 国产激情视频一区二区三区欧美| 日韩成人伦理电影在线观看| 成人av在线一区二区三区| 国产美女在线精品| 精品久久久久久久久久久院品网| 欧美日韩aaaaaa| 石原莉奈在线亚洲三区| 精品久久久久av影院| 国产成人精品免费| 亚洲狠狠丁香婷婷综合久久久| 中文一区在线播放 | 欧美日韩在线观看一区二区 | 99久久免费精品高清特色大片| 久久成人综合网| 日韩欧美在线影院| 国产成人aaa| 久久久三级国产网站| 91麻豆国产自产在线观看| 亚洲国产成人av网| 国产偷国产偷精品高清尤物| 91成人在线观看喷潮| 国产成人av福利| 久久精品国产亚洲5555| 中文一区在线播放| 91精品国产手机| 成人毛片老司机大片| 精品亚洲porn| 日韩精品视频网站| 自拍偷拍欧美激情| 国产精品女同一区二区三区| 欧美妇女性影城| 欧美日韩国产片| 欧美性生活久久| 91国偷自产一区二区使用方法| 精品国产乱码久久久久久1区2区 | 欧美亚洲丝袜传媒另类| 成人av中文字幕| 国产成人午夜精品影院观看视频 | 久久99精品久久久久婷婷| 一区二区三区四区国产精品| 国产精品乱子久久久久| 国产欧美精品国产国产专区 | 久久精品72免费观看| 亚洲精品免费在线播放| 中文字幕一区在线| 亚洲精品免费看| 亚洲第四色夜色| 五月开心婷婷久久| 精品亚洲欧美一区| 久草热8精品视频在线观看| 久久丁香综合五月国产三级网站| 欧美一区二区视频在线观看2020 | 亚洲韩国一区二区三区| 亚洲男同性视频| 亚洲国产精品欧美一二99| 日韩av电影天堂| 国产一区91精品张津瑜| 91美女片黄在线观看91美女| 91激情五月电影| 久久综合九色综合久久久精品综合| 久久精品国产久精国产爱| 国产成人综合视频| 日本高清无吗v一区| 日韩免费视频一区二区| 中文字幕字幕中文在线中不卡视频| 欧洲中文字幕精品| 国产色综合一区| 欧美a级理论片| 色悠悠亚洲一区二区| 国产午夜亚洲精品理论片色戒| 色94色欧美sute亚洲线路二 | 欧美日韩精品二区第二页| 国产精品美女久久久久久久 | 国产精品天天看| 日本成人在线一区| av在线不卡免费看| 国产欧美日本一区视频| 精品一区二区影视| 8x8x8国产精品| 一区二区三区四区视频精品免费 | 国产精品99久久久久久宅男| 91精品国产综合久久久久久| 国产精品午夜春色av| 成人污视频在线观看| 久久夜色精品一区| 久久99精品一区二区三区三区| 亚洲国产成人porn| 欧美三级电影一区| 人人狠狠综合久久亚洲| 欧美电视剧免费全集观看| 美国一区二区三区在线播放| 欧美高清hd18日本| 国产一区二区福利视频| 国产精品成人免费精品自在线观看 | 久久久久久久综合狠狠综合| 韩国av一区二区三区四区| 国产午夜亚洲精品午夜鲁丝片| 精品国免费一区二区三区| 精品在线一区二区三区| 国产精品女上位| 欧美视频精品在线观看| 国内一区二区在线| 亚洲免费观看在线视频| 精品理论电影在线观看 | 在线免费亚洲电影| 国内外成人在线视频| 亚洲免费观看视频| 欧美美女黄视频| 成人免费黄色在线| 蜜臀久久99精品久久久画质超高清| 国产一区二区三区在线观看免费 | 99久久夜色精品国产网站| 日韩国产在线观看| 亚洲日本va午夜在线影院| 精品99999| 欧美一区二区三区在线电影 | 国产亚洲自拍一区| 欧美日韩激情一区二区| 99精品在线观看视频| 成人免费黄色大片| 黄色日韩网站视频| 免费人成黄页网站在线一区二区| 97久久精品人人澡人人爽| 国产乱码精品一区二区三区av| 欧美日韩国产高清一区二区三区 |