亚洲欧美第一页_禁久久精品乱码_粉嫩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久久久久久| 成人精品在线视频观看| 精品久久五月天| 亚洲国产aⅴ成人精品无吗| 国产成人免费视频一区| 欧美一区二区三区视频免费| 亚洲综合在线第一页| 国产成人综合在线| 欧美成人在线直播| 五月天婷婷综合| 欧美影院一区二区三区| 中文文精品字幕一区二区| 麻豆成人免费电影| 欧美精品色综合| 亚洲午夜激情av| 色一情一乱一乱一91av| 中文字幕不卡一区| 国产乱码精品一区二区三区av | 欧美xxxxx牲另类人与| 亚洲二区视频在线| 日本精品裸体写真集在线观看| 国产午夜精品一区二区三区视频| 美洲天堂一区二卡三卡四卡视频| 欧美精品一二三区| 亚州成人在线电影| 欧美私人免费视频| 亚洲午夜久久久久中文字幕久| 91婷婷韩国欧美一区二区| 综合久久久久久| 91视频xxxx| 亚洲欧美偷拍另类a∨色屁股| 懂色av一区二区三区蜜臀| 国产亲近乱来精品视频| 国产69精品久久777的优势| 国产欧美一区二区在线| 成人一区二区三区在线观看| 国产亚洲综合在线| 成av人片一区二区| 一区二区在线观看免费| 在线免费观看成人短视频| 亚洲精品视频在线| 欧美日韩精品二区第二页| 欧美va亚洲va在线观看蝴蝶网| 久久精品噜噜噜成人av农村| 精品乱人伦一区二区三区| 国产永久精品大片wwwapp| 国产欧美一区二区精品久导航 | 欧美国产丝袜视频| 不卡高清视频专区| 夜夜嗨av一区二区三区四季av| 欧洲国产伦久久久久久久| 首页欧美精品中文字幕| 精品国偷自产国产一区| 国产福利电影一区二区三区| 亚洲乱码国产乱码精品精的特点| 在线视频欧美精品| 麻豆一区二区三| 国产农村妇女精品| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 国产精品第一页第二页第三页| www.视频一区| 日韩电影在线免费看| 欧美精品一区二区三区久久久| 成人爽a毛片一区二区免费| 亚洲午夜免费福利视频| 久久久久久久电影| 在线观看免费亚洲| 黄色精品一二区| 一区二区三区91| 精品奇米国产一区二区三区| 成人av电影在线观看| 全国精品久久少妇| 综合久久一区二区三区| 日韩视频一区二区三区 | 国产女同性恋一区二区| 欧美日韩免费视频| 成人高清视频在线观看| 青青草原综合久久大伊人精品| 国产无一区二区| 91精品国产日韩91久久久久久| 成人午夜视频在线观看| 日韩不卡手机在线v区| 亚洲视频一区二区在线观看| 欧美xxxxxxxxx| 欧美日韩一卡二卡三卡| eeuss鲁片一区二区三区在线看| 日韩精彩视频在线观看| 亚洲美腿欧美偷拍| 欧美激情在线观看视频免费| 91精品国产色综合久久久蜜香臀| 色综合视频一区二区三区高清| 国产九九视频一区二区三区| 婷婷开心久久网| 亚洲综合在线观看视频| 国产精品欧美精品| 国产网红主播福利一区二区| 日韩免费高清视频| 91精品国产综合久久精品性色| 色系网站成人免费| av一区二区三区四区| 精东粉嫩av免费一区二区三区| 亚洲成人动漫在线免费观看| 又紧又大又爽精品一区二区| 中文字幕一区二区视频| 国产欧美精品国产国产专区| 久久久久国产精品厨房| 精品日韩欧美在线| 久久综合视频网| 久久综合狠狠综合久久综合88 | 91色porny| 91色视频在线| 日本韩国视频一区二区| 一本久久a久久精品亚洲| 色悠悠亚洲一区二区| 97精品久久久久中文字幕| 92国产精品观看| 91美女视频网站| 欧美在线观看视频一区二区 | 日韩精品一区在线观看| 2024国产精品| 国产免费观看久久| 中文字幕一区二区三区av| 亚洲特黄一级片| 玉米视频成人免费看| 亚洲成人av在线电影| 日韩av一级片| 国内精品久久久久影院一蜜桃| 国产一区二区在线影院| 成人综合日日夜夜| 色综合中文综合网| 欧美精品一区二区三| 精品区一区二区| 国产欧美一区二区精品久导航| 欧美国产在线观看| 亚洲激情图片小说视频| 婷婷丁香久久五月婷婷| 久久99蜜桃精品| 岛国一区二区在线观看| 色综合久久综合中文综合网| 欧美肥大bbwbbw高潮| 久久久影视传媒| 亚洲欧美日韩精品久久久久| 亚洲第一电影网| 久久精品国产99国产精品| 国产福利精品导航| 欧美午夜免费电影| 久久伊人中文字幕| 一区二区免费在线播放| 老司机精品视频线观看86| yourporn久久国产精品| 欧美一区二区久久| 亚洲三级久久久| 麻豆专区一区二区三区四区五区| 丁香激情综合国产| 91精品国产91综合久久蜜臀| 国产精品久久网站| 日韩成人午夜精品| 99国产精品国产精品久久| 日韩一二三区视频| 亚洲美女视频在线| 国产成人精品www牛牛影视| 欧美视频在线一区| 欧美国产成人在线| 久久精品国产亚洲一区二区三区| 99精品一区二区| 久久综合九色综合欧美就去吻| 夜夜亚洲天天久久| 99久久综合色| 久久久www免费人成精品| 天天影视色香欲综合网老头| 99久久婷婷国产综合精品| 精品久久久久香蕉网| 日韩电影一区二区三区四区| 色欧美乱欧美15图片| 国产精品丝袜一区| 国产精品伊人色| 日韩精品在线一区二区| 日韩高清一区二区| 欧美日韩国产精品自在自线| 国产精品电影一区二区| 国产成人免费9x9x人网站视频| 欧美高清精品3d| 亚洲第一二三四区| 欧美性xxxxx极品少妇| 亚洲综合在线第一页| 色哟哟国产精品免费观看| 中文字幕乱码日本亚洲一区二区| 老司机午夜精品| 精品久久久久久久久久久久久久久| 亚洲小说欧美激情另类| 91久久线看在观草草青青| 亚洲天堂a在线| 日本韩国精品一区二区在线观看| 国产精品久久久久久久久搜平片| 丁香天五香天堂综合| 国产亚洲制服色|