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

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

?? filters.h

?? hashish-1.1b加密算法庫c++
?? H
?? 第 1 頁 / 共 2 頁
字號:
#ifndef CRYPTOPP_FILTERS_H#define CRYPTOPP_FILTERS_H#include "simple.h"#include "secblock.h"#include "misc.h"#include "smartptr.h"#include "queue.h"#include "algparam.h"NAMESPACE_BEGIN(CryptoPP)/// provides an implementation of BufferedTransformation's attachment interfaceclass Filter : public BufferedTransformation, public NotCopyable{public:	Filter(BufferedTransformation *attachment);	bool Attachable() {return true;}	BufferedTransformation *AttachedTransformation();	const BufferedTransformation *AttachedTransformation() const;	void Detach(BufferedTransformation *newAttachment = NULL);	unsigned int TransferTo2(BufferedTransformation &target, unsigned long &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true);	unsigned int CopyRangeTo2(BufferedTransformation &target, unsigned long &begin, unsigned long end=ULONG_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const;	void Initialize(const NameValuePairs &parameters=g_nullNameValuePairs, int propagation=-1);	bool Flush(bool hardFlush, int propagation=-1, bool blocking=true);	bool MessageSeriesEnd(int propagation=-1, bool blocking=true);protected:	virtual void NotifyAttachmentChange() {}	virtual BufferedTransformation * NewDefaultAttachment() const;	void Insert(Filter *nextFilter);	// insert filter after this one	virtual bool ShouldPropagateMessageEnd() const {return true;}	virtual bool ShouldPropagateMessageSeriesEnd() const {return true;}	void PropagateInitialize(const NameValuePairs &parameters, int propagation, const std::string &channel=NULL_CHANNEL);	unsigned int Output(int outputSite, const byte *inString, unsigned int length, int messageEnd, bool blocking, const std::string &channel=NULL_CHANNEL);	bool OutputMessageEnd(int outputSite, int propagation, bool blocking, const std::string &channel=NULL_CHANNEL);	bool OutputFlush(int outputSite, bool hardFlush, int propagation, bool blocking, const std::string &channel=NULL_CHANNEL);	bool OutputMessageSeriesEnd(int outputSite, int propagation, bool blocking, const std::string &channel=NULL_CHANNEL);private:	member_ptr<BufferedTransformation> m_attachment;	protected:	unsigned int m_inputPosition;	int m_continueAt;};struct FilterPutSpaceHelper{	// desiredSize is how much to ask target, bufferSize is how much to allocate in m_tempSpace	byte *HelpCreatePutSpace(BufferedTransformation &target, const std::string &channel, unsigned int minSize, unsigned int desiredSize, unsigned int &bufferSize)	{		assert(desiredSize >= minSize && bufferSize >= minSize);		if (m_tempSpace.size() < minSize)		{			byte *result = target.ChannelCreatePutSpace(channel, desiredSize);			if (desiredSize >= minSize)			{				bufferSize = desiredSize;				return result;			}			m_tempSpace.New(bufferSize);		}		bufferSize = m_tempSpace.size();		return m_tempSpace.begin();	}	byte *HelpCreatePutSpace(BufferedTransformation &target, const std::string &channel, unsigned int minSize)		{return HelpCreatePutSpace(target, channel, minSize, minSize, minSize);}	byte *HelpCreatePutSpace(BufferedTransformation &target, const std::string &channel, unsigned int minSize, unsigned int bufferSize)		{return HelpCreatePutSpace(target, channel, minSize, minSize, bufferSize);}	SecByteBlock m_tempSpace;};//! measure how many byte and messages pass through, also serves as valveclass MeterFilter : public Bufferless<Filter>{public:	MeterFilter(BufferedTransformation *attachment=NULL, bool transparent=true)		: Bufferless<Filter>(attachment), m_transparent(transparent) {ResetMeter();}	void SetTransparent(bool transparent) {m_transparent = transparent;}	void ResetMeter() {m_currentMessageBytes = m_totalBytes = m_currentSeriesMessages = m_totalMessages = m_totalMessageSeries = 0;}	unsigned long GetCurrentMessageBytes() const {return m_currentMessageBytes;}	unsigned long GetTotalBytes() {return m_totalBytes;}	unsigned int GetCurrentSeriesMessages() {return m_currentSeriesMessages;}	unsigned int GetTotalMessages() {return m_totalMessages;}	unsigned int GetTotalMessageSeries() {return m_totalMessageSeries;}	unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);	bool IsolatedMessageSeriesEnd(bool blocking);private:	bool ShouldPropagateMessageEnd() const {return m_transparent;}	bool ShouldPropagateMessageSeriesEnd() const {return m_transparent;}	bool m_transparent;	unsigned long m_currentMessageBytes, m_totalBytes;	unsigned int m_currentSeriesMessages, m_totalMessages, m_totalMessageSeries;};//! .class TransparentFilter : public MeterFilter{public:	TransparentFilter(BufferedTransformation *attachment=NULL) : MeterFilter(attachment, true) {}};//! .class OpaqueFilter : public MeterFilter{public:	OpaqueFilter(BufferedTransformation *attachment=NULL) : MeterFilter(attachment, false) {}};/*! FilterWithBufferedInput divides up the input stream into	a first block, a number of middle blocks, and a last block.	First and last blocks are optional, and middle blocks may	be a stream instead (i.e. blockSize == 1).*/class FilterWithBufferedInput : public Filter{public:	FilterWithBufferedInput(BufferedTransformation *attachment);	//! firstSize and lastSize may be 0, blockSize must be at least 1	FilterWithBufferedInput(unsigned int firstSize, unsigned int blockSize, unsigned int lastSize, BufferedTransformation *attachment);	void IsolatedInitialize(const NameValuePairs &parameters);	unsigned int Put2(const byte *inString, unsigned int length, int messageEnd, bool blocking)	{		return PutMaybeModifiable(const_cast<byte *>(inString), length, messageEnd, blocking, false);	}	unsigned int PutModifiable2(byte *inString, unsigned int length, int messageEnd, bool blocking)	{		return PutMaybeModifiable(inString, length, messageEnd, blocking, true);	}	/*! calls ForceNextPut() if hardFlush is true */	bool IsolatedFlush(bool hardFlush, bool blocking);	/*! The input buffer may contain more than blockSize bytes if lastSize != 0.		ForceNextPut() forces a call to NextPut() if this is the case.	*/	void ForceNextPut();protected:	bool DidFirstPut() {return m_firstInputDone;}	virtual void InitializeDerivedAndReturnNewSizes(const NameValuePairs &parameters, unsigned int &firstSize, unsigned int &blockSize, unsigned int &lastSize)		{InitializeDerived(parameters);}	virtual void InitializeDerived(const NameValuePairs &parameters) {}	// FirstPut() is called if (firstSize != 0 and totalLength >= firstSize)	// or (firstSize == 0 and (totalLength > 0 or a MessageEnd() is received))	virtual void FirstPut(const byte *inString) =0;	// NextPut() is called if totalLength >= firstSize+blockSize+lastSize	virtual void NextPutSingle(const byte *inString) {assert(false);}	// Same as NextPut() except length can be a multiple of blockSize	// Either NextPut() or NextPutMultiple() must be overriden	virtual void NextPutMultiple(const byte *inString, unsigned int length);	// Same as NextPutMultiple(), but inString can be modified	virtual void NextPutModifiable(byte *inString, unsigned int length)		{NextPutMultiple(inString, length);}	// LastPut() is always called	// if totalLength < firstSize then length == totalLength	// else if totalLength <= firstSize+lastSize then length == totalLength-firstSize	// else lastSize <= length < lastSize+blockSize	virtual void LastPut(const byte *inString, unsigned int length) =0;	virtual void FlushDerived() {}private:	unsigned int PutMaybeModifiable(byte *begin, unsigned int length, int messageEnd, bool blocking, bool modifiable);	void NextPutMaybeModifiable(byte *inString, unsigned int length, bool modifiable)	{		if (modifiable) NextPutModifiable(inString, length);		else NextPutMultiple(inString, length);	}	// This function should no longer be used, put this here to cause a compiler error	// if someone tries to override NextPut().	virtual int NextPut(const byte *inString, unsigned int length) {assert(false); return 0;}	class BlockQueue	{	public:		void ResetQueue(unsigned int blockSize, unsigned int maxBlocks);		byte *GetBlock();		byte *GetContigousBlocks(unsigned int &numberOfBytes);		unsigned int GetAll(byte *outString);		void Put(const byte *inString, unsigned int length);		unsigned int CurrentSize() const {return m_size;}		unsigned int MaxSize() const {return m_buffer.size();}	private:		SecByteBlock m_buffer;		unsigned int m_blockSize, m_maxBlocks, m_size;		byte *m_begin;	};	unsigned int m_firstSize, m_blockSize, m_lastSize;	bool m_firstInputDone;	BlockQueue m_queue;};//! .class FilterWithInputQueue : public Filter{public:	FilterWithInputQueue(BufferedTransformation *attachment) : Filter(attachment) {}	unsigned int Put2(const byte *inString, unsigned int length, int messageEnd, bool blocking)	{		if (!blocking)			throw BlockingInputOnly("FilterWithInputQueue");				m_inQueue.Put(inString, length);		if (messageEnd)		{			IsolatedMessageEnd(blocking);			Output(0, NULL, 0, messageEnd, blocking);		}		return 0;	}protected:	virtual bool IsolatedMessageEnd(bool blocking) =0;	void IsolatedInitialize(const NameValuePairs &parameters) {m_inQueue.Clear();}	ByteQueue m_inQueue;};//! Filter Wrapper for StreamTransformationclass StreamTransformationFilter : public FilterWithBufferedInput, private FilterPutSpaceHelper{public:	enum BlockPaddingScheme {NO_PADDING, ZEROS_PADDING, PKCS_PADDING, ONE_AND_ZEROS_PADDING, DEFAULT_PADDING};	/*! DEFAULT_PADDING means PKCS_PADDING if c.MandatoryBlockSize() > 1 && c.MinLastBlockSize() == 0 (e.g. ECB or CBC mode),		otherwise NO_PADDING (OFB, CFB, CTR, CBC-CTS modes) */	StreamTransformationFilter(StreamTransformation &c, BufferedTransformation *attachment = NULL, BlockPaddingScheme padding = DEFAULT_PADDING);	void FirstPut(const byte *inString);	void NextPutMultiple(const byte *inString, unsigned int length);	void NextPutModifiable(byte *inString, unsigned int length);	void LastPut(const byte *inString, unsigned int length);//	byte * CreatePutSpace(unsigned int &size);protected:	static unsigned int LastBlockSize(StreamTransformation &c, BlockPaddingScheme padding);	StreamTransformation &m_cipher;	BlockPaddingScheme m_padding;	unsigned int m_optimalBufferSize;};#ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITYtypedef StreamTransformationFilter StreamCipherFilter;#endif//! Filter Wrapper for HashTransformationclass HashFilter : public Bufferless<Filter>, private FilterPutSpaceHelper{public:	HashFilter(HashTransformation &hm, BufferedTransformation *attachment = NULL, bool putMessage=false)		: Bufferless<Filter>(attachment), m_hashModule(hm), m_putMessage(putMessage) {}	void IsolatedInitialize(const NameValuePairs &parameters);	unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);	byte * CreatePutSpace(unsigned int &size) {return m_hashModule.CreateUpdateSpace(size);}private:	HashTransformation &m_hashModule;	bool m_putMessage;	byte *m_space;};//! Filter Wrapper for HashTransformationclass HashVerificationFilter : public FilterWithBufferedInput{public:	class HashVerificationFailed : public Exception	{	public:		HashVerificationFailed()			: Exception(DATA_INTEGRITY_CHECK_FAILED, "HashVerifier: message hash not valid") {}	};	enum Flags {HASH_AT_BEGIN=1, PUT_MESSAGE=2, PUT_HASH=4, PUT_RESULT=8, THROW_EXCEPTION=16, DEFAULT_FLAGS = HASH_AT_BEGIN | PUT_RESULT};	HashVerificationFilter(HashTransformation &hm, BufferedTransformation *attachment = NULL, word32 flags = DEFAULT_FLAGS);	bool GetLastResult() const {return m_verified;}protected:	void InitializeDerivedAndReturnNewSizes(const NameValuePairs &parameters, unsigned int &firstSize, unsigned int &blockSize, unsigned int &lastSize);	void FirstPut(const byte *inString);	void NextPutMultiple(const byte *inString, unsigned int length);	void LastPut(const byte *inString, unsigned int length);private:	static inline unsigned int FirstSize(word32 flags, HashTransformation &hm) {return flags & HASH_AT_BEGIN ? hm.DigestSize() : 0;}	static inline unsigned int LastSize(word32 flags, HashTransformation &hm) {return flags & HASH_AT_BEGIN ? 0 : hm.DigestSize();}	HashTransformation &m_hashModule;	word32 m_flags;	SecByteBlock m_expectedHash;	bool m_verified;};typedef HashVerificationFilter HashVerifier;	// for backwards compatibility//! Filter Wrapper for PK_Signerclass SignerFilter : public Unflushable<Filter>{public:	SignerFilter(RandomNumberGenerator &rng, const PK_Signer &signer, BufferedTransformation *attachment = NULL, bool putMessage=false)		: Unflushable<Filter>(attachment), m_rng(rng), m_signer(signer), m_messageAccumulator(signer.NewSignatureAccumulator()), m_putMessage(putMessage) {}	void IsolatedInitialize(const NameValuePairs &parameters);	unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);private:	RandomNumberGenerator &m_rng;	const PK_Signer	&m_signer;	member_ptr<PK_MessageAccumulator> m_messageAccumulator;	bool m_putMessage;	SecByteBlock m_buf;};//! Filter Wrapper for PK_Verifierclass SignatureVerificationFilter : public FilterWithBufferedInput{public:	class SignatureVerificationFailed : public Exception	{	public:		SignatureVerificationFailed()			: Exception(DATA_INTEGRITY_CHECK_FAILED, "VerifierFilter: digital signature not valid") {}	};	enum Flags {SIGNATURE_AT_BEGIN=1, PUT_MESSAGE=2, PUT_SIGNATURE=4, PUT_RESULT=8, THROW_EXCEPTION=16, DEFAULT_FLAGS = SIGNATURE_AT_BEGIN | PUT_RESULT};	SignatureVerificationFilter(const PK_Verifier &verifier, BufferedTransformation *attachment = NULL, word32 flags = DEFAULT_FLAGS);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美影音先锋| 久久综合精品国产一区二区三区| 国产精品嫩草久久久久| 国产成人在线电影| 国产精品―色哟哟| 91麻豆免费视频| 亚洲va天堂va国产va久| 日韩午夜av电影| 国产成人欧美日韩在线电影| 国产精品免费视频观看| 91国偷自产一区二区三区成为亚洲经典| 亚洲欧美一区二区不卡| 欧美三级欧美一级| 久久国产尿小便嘘嘘| 国产午夜精品福利| 色综合久久六月婷婷中文字幕| 亚洲高清久久久| 久久伊人蜜桃av一区二区| 东方aⅴ免费观看久久av| 亚洲精品国产一区二区精华液| 欧美日韩国产一级| 国产在线一区观看| 亚洲精品你懂的| 日韩午夜电影在线观看| 91在线视频播放地址| 婷婷六月综合网| 欧美极品少妇xxxxⅹ高跟鞋| 91黄色免费版| 国产福利不卡视频| 亚洲国产三级在线| 国产欧美精品一区二区色综合| 色婷婷综合久色| 久久99九九99精品| 亚洲一区二三区| 久久久精品欧美丰满| 欧美在线免费视屏| 国产精品一区二区久久精品爱涩| 亚洲欧洲日韩综合一区二区| 日韩天堂在线观看| 欧美在线观看禁18| 国产成人免费av在线| 天天色综合成人网| 亚洲免费色视频| 国产欧美日韩在线观看| 6080国产精品一区二区| a美女胸又www黄视频久久| 理论电影国产精品| 午夜欧美在线一二页| 中文字幕在线播放不卡一区| 日韩美女一区二区三区| 欧美无砖专区一中文字| 99在线精品一区二区三区| 精品一区二区三区在线视频| 亚洲影视在线观看| 亚洲视频中文字幕| 欧美韩日一区二区三区四区| 精品理论电影在线| 欧美疯狂性受xxxxx喷水图片| av电影在线观看一区| 国产夫妻精品视频| 国产精品一区二区久久不卡 | 亚洲高清不卡在线| 国产精品高潮久久久久无| 国产偷国产偷精品高清尤物 | 亚洲精品一线二线三线| 欧美一区二区精美| 制服.丝袜.亚洲.中文.综合| 欧美视频中文字幕| 欧美午夜在线一二页| 在线精品视频小说1| 99精品欧美一区二区三区小说| 国产成人精品网址| 国产一区二区主播在线| 国产在线播精品第三| 国内精品自线一区二区三区视频| 美国十次综合导航| 久久99精品久久久久久久久久久久| 婷婷六月综合网| 日韩av中文字幕一区二区三区| 亚洲成人先锋电影| 男人的天堂亚洲一区| 久久电影网站中文字幕 | 欧美大胆一级视频| 精品久久人人做人人爽| www一区二区| 久久久久国产成人精品亚洲午夜 | 国产91丝袜在线观看| 国产精品99久| 成人app网站| 91极品视觉盛宴| 欧美日韩免费观看一区二区三区| 欧美午夜电影一区| 欧美一级国产精品| 久久久久国产免费免费 | 欧美影片第一页| 欧美精品乱码久久久久久按摩| 欧美一区二区成人| 久久久精品黄色| 亚洲精品国产成人久久av盗摄| 日韩高清一区二区| 韩国中文字幕2020精品| 99re视频精品| 欧美日韩一区精品| 久久亚洲精精品中文字幕早川悠里| 国产午夜三级一区二区三| 亚洲欧美激情一区二区| 亚洲成av人片一区二区梦乃| 久久99精品国产.久久久久| 成人精品电影在线观看| 在线观看国产日韩| 精品入口麻豆88视频| 国产精品久久久久9999吃药| 午夜电影一区二区| 福利电影一区二区三区| 色琪琪一区二区三区亚洲区| 日韩视频在线永久播放| 国产精品素人视频| 日韩激情一区二区| 成人免费视频视频在线观看免费| 欧美三级日韩在线| 日本一区二区视频在线| 香港成人在线视频| 成人动漫精品一区二区| 日韩一区二区影院| 亚洲欧美欧美一区二区三区| 久久91精品久久久久久秒播| 91小视频免费看| 欧美白人最猛性xxxxx69交| 亚洲男人的天堂网| 国产精品夜夜爽| 7777精品伊人久久久大香线蕉经典版下载| 久久精品无码一区二区三区| 天天综合色天天| 91搞黄在线观看| 欧美—级在线免费片| 久久精品国产77777蜜臀| 色8久久人人97超碰香蕉987| 国产日韩一级二级三级| 久久精品国产亚洲aⅴ| 欧美色爱综合网| 亚洲人精品一区| 大陆成人av片| 久久精品一二三| 久草中文综合在线| 在线不卡免费av| 亚洲精品高清视频在线观看| 成人精品国产一区二区4080| 精品国精品自拍自在线| 日本不卡免费在线视频| 精品污污网站免费看| 一区二区三区 在线观看视频| 成人手机在线视频| 国产精品天干天干在线综合| 国产黄色成人av| 国产午夜亚洲精品羞羞网站| 激情六月婷婷综合| 亚洲精品一线二线三线| 久久国产精品色| 亚洲精品在线电影| 国产美女精品一区二区三区| 欧美不卡视频一区| 激情图区综合网| 欧美变态凌虐bdsm| 国产一区欧美一区| 久久久久久久久久久久久女国产乱| 久久成人免费日本黄色| 日韩欧美中文字幕一区| 免费视频一区二区| 日韩亚洲欧美在线| 久久精品99国产精品日本| 日韩一级完整毛片| 九九国产精品视频| 久久精品视频免费| 成人免费的视频| 亚洲男人电影天堂| 欧美日韩中文一区| 免费成人小视频| 久久免费午夜影院| 国产成人精品免费在线| 中文字幕中文字幕在线一区 | 91福利国产精品| 亚洲国产视频一区二区| 91精品黄色片免费大全| 久久99国产精品久久| 欧美激情综合五月色丁香| 99久久精品国产一区| 亚洲一区在线视频| 日韩精品一区二区三区中文精品| 极品美女销魂一区二区三区免费| 国产人成一区二区三区影院| 99久久99久久免费精品蜜臀| 亚洲最新视频在线播放| 6080午夜不卡| 大桥未久av一区二区三区中文| 亚洲精品欧美激情| 欧美电视剧在线观看完整版| 成人av网址在线观看| 日韩精品欧美精品| 国产欧美日韩在线视频| 欧美在线999|