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

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

?? filters.h

?? 常用字符串hash算法
?? 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高潮流白浆在线麻豆| 91精品国产入口在线| 亚洲天堂网中文字| 国产成人精品亚洲日本在线桃色| 91精品国产综合久久精品app| 国产精品毛片大码女人| 久久精品国产999大香线蕉| 一本色道综合亚洲| 欧美激情一区在线观看| 美女视频免费一区| 欧美日本视频在线| 亚洲精品久久久蜜桃| 成人精品高清在线| 久久久高清一区二区三区| 肉丝袜脚交视频一区二区| 在线免费观看日韩欧美| 中文字幕亚洲精品在线观看| 国产精品一区二区男女羞羞无遮挡| 欧美男人的天堂一二区| 亚洲国产日韩精品| 91色porny| 自拍偷拍国产精品| 91麻豆文化传媒在线观看| 中文字幕巨乱亚洲| 风间由美性色一区二区三区| 久久久午夜电影| 国内久久精品视频| ww久久中文字幕| 老司机精品视频导航| 欧美一二三四在线| 日日夜夜免费精品| 欧美一级国产精品| 美女性感视频久久| 久久欧美中文字幕| 成人一区二区三区视频在线观看| 国产亚洲精品久| 成人午夜av电影| 亚洲欧洲日韩在线| 欧美性受xxxx黑人xyx| 亚洲成av人片在线| 日韩精品一区二区在线| 国产一区二区三区电影在线观看 | 精品日韩一区二区三区免费视频| 午夜婷婷国产麻豆精品| 91精选在线观看| 激情五月播播久久久精品| 精品国产污网站| 国产不卡高清在线观看视频| 久久久久亚洲蜜桃| 欧美午夜精品电影| 五月激情综合色| 精品国产欧美一区二区| 成人性生交大片免费看视频在线 | 欧美性一区二区| 午夜影院久久久| 26uuu国产日韩综合| 91色视频在线| 久久激情综合网| 国产日韩欧美精品在线| 色综合色综合色综合色综合色综合| 夜夜精品视频一区二区| 精品美女一区二区| av中文字幕亚洲| 日本午夜精品一区二区三区电影| 久久精品一区二区三区不卡牛牛| 99国产精品国产精品久久| 亚洲777理论| 国产亚洲欧美一区在线观看| 色综合久久综合| 九九视频精品免费| 亚洲精选视频免费看| 日韩免费视频一区二区| 色婷婷综合久久久久中文| 蜜桃视频免费观看一区| 最新国产精品久久精品| 欧美一区二区三区成人| jvid福利写真一区二区三区| 日韩综合在线视频| 亚洲欧美偷拍卡通变态| 精品国产麻豆免费人成网站| 在线免费观看一区| 成人黄页毛片网站| 欧美a一区二区| 亚洲欧美另类图片小说| 国产亚洲va综合人人澡精品| 欧美一区二区三区视频在线观看| 91女神在线视频| 成人综合在线观看| 久久国内精品视频| 亚洲成人黄色小说| 亚洲私人黄色宅男| 中文字幕不卡一区| 精品国产免费人成在线观看| 91精品久久久久久久99蜜桃 | 一区二区三区四区激情| 国产欧美日韩在线看| 精品少妇一区二区三区日产乱码| 欧美艳星brazzers| 91老师国产黑色丝袜在线| 国产成人av电影免费在线观看| 蜜桃视频在线观看一区| 轻轻草成人在线| 日日摸夜夜添夜夜添国产精品| 亚洲国产综合91精品麻豆| 亚洲精品成人精品456| 综合久久一区二区三区| 国产精品久久福利| 国产精品丝袜久久久久久app| 精品毛片乱码1区2区3区| 日韩欧美亚洲国产精品字幕久久久| 欧美视频一区二区三区四区 | 精品视频在线看| 欧美午夜片在线看| 欧美怡红院视频| 色综合天天综合在线视频| 99国产精品国产精品毛片| 91麻豆免费在线观看| 色综合一个色综合亚洲| 欧美四级电影网| 欧美二区在线观看| 欧美精品日日鲁夜夜添| 欧美一区二区二区| 日韩欧美成人午夜| 久久久久久久久久久久电影| 国产欧美日韩综合| 亚洲欧美电影院| 一区二区三区高清在线| 亚洲丰满少妇videoshd| 男人的天堂亚洲一区| 美女精品自拍一二三四| 国产呦萝稀缺另类资源| 成人手机在线视频| 在线观看av不卡| 欧美成人r级一区二区三区| 久久免费午夜影院| 亚洲日本丝袜连裤袜办公室| 精品无人区卡一卡二卡三乱码免费卡| 精品系列免费在线观看| 97精品久久久午夜一区二区三区| 欧美伊人久久久久久午夜久久久久| 欧美一级二级在线观看| 亚洲国产成人一区二区三区| 亚洲综合另类小说| 国产资源在线一区| heyzo一本久久综合| 欧美精品在线观看播放| 亚洲国产精品成人综合| 亚洲va韩国va欧美va| 国产米奇在线777精品观看| 色素色在线综合| 精品国产乱码久久久久久1区2区| 亚洲欧洲av色图| 美女视频网站久久| 99视频精品在线| 欧美一区二区三区婷婷月色| 亚洲欧美综合另类在线卡通| 日本中文一区二区三区| 97久久人人超碰| 久久一区二区视频| 亚洲国产色一区| av电影在线观看完整版一区二区| 91精品国产色综合久久久蜜香臀| 中文字幕一区二| 久久成人麻豆午夜电影| 在线影院国内精品| 国产精品伦一区二区三级视频| 日韩av网站免费在线| 在线免费亚洲电影| 中文一区一区三区高中清不卡| 免费视频一区二区| 欧美日韩视频第一区| 国产精品黄色在线观看 | 一区二区三区蜜桃网| 狠狠色丁香婷婷综合| 欧美精品久久99久久在免费线 | 欧美大片日本大片免费观看| 有坂深雪av一区二区精品| 国产ts人妖一区二区| 精品久久久久久久人人人人传媒| 亚洲伊人色欲综合网| 91欧美一区二区| 中文字幕在线观看一区二区| 国产精品自在在线| 日韩女优制服丝袜电影| 五月天丁香久久| 欧美二区三区91| 婷婷中文字幕一区三区| 欧美三级中文字幕在线观看| 亚洲色图制服诱惑 | 欧美色视频在线观看| 亚洲欧美二区三区| 色婷婷久久综合| 亚洲视频一区二区在线观看| 99re这里都是精品| 亚洲欧美视频在线观看视频|