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

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

?? filters.h

?? 應用非對稱密鑰系統RSA密碼系統進行數據簽名的代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
#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"
#include <deque>

NAMESPACE_BEGIN(CryptoPP)

/// provides an implementation of BufferedTransformation's attachment interface
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Filter : public BufferedTransformation, public NotCopyable
{
public:
	Filter(BufferedTransformation *attachment = NULL);

	bool Attachable() {return true;}
	BufferedTransformation *AttachedTransformation();
	const BufferedTransformation *AttachedTransformation() const;
	void Detach(BufferedTransformation *newAttachment = NULL);

	size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true);
	size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_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 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);

	size_t Output(int outputSite, const byte *inString, size_t length, int messageEnd, bool blocking, const std::string &channel=NULL_CHANNEL);
	size_t OutputModifiable(int outputSite, byte *inString, size_t 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:
	size_t m_inputPosition;
	int m_continueAt;
};

struct CRYPTOPP_DLL 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, size_t minSize, size_t desiredSize, size_t &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, size_t minSize)
		{return HelpCreatePutSpace(target, channel, minSize, minSize, minSize);}
	byte *HelpCreatePutSpace(BufferedTransformation &target, const std::string &channel, size_t minSize, size_t bufferSize)
		{return HelpCreatePutSpace(target, channel, minSize, minSize, bufferSize);}
	SecByteBlock m_tempSpace;
};

//! measure how many byte and messages pass through, also serves as valve
class CRYPTOPP_DLL MeterFilter : public Bufferless<Filter>
{
public:
	MeterFilter(BufferedTransformation *attachment=NULL, bool transparent=true)
		: m_transparent(transparent) {Detach(attachment); ResetMeter();}

	void SetTransparent(bool transparent) {m_transparent = transparent;}
	void AddRangeToSkip(unsigned int message, lword position, lword size, bool sortNow = true);
	void ResetMeter();
	void IsolatedInitialize(const NameValuePairs &parameters) {ResetMeter();}

	lword GetCurrentMessageBytes() const {return m_currentMessageBytes;}
	lword GetTotalBytes() {return m_totalBytes;}
	unsigned int GetCurrentSeriesMessages() {return m_currentSeriesMessages;}
	unsigned int GetTotalMessages() {return m_totalMessages;}
	unsigned int GetTotalMessageSeries() {return m_totalMessageSeries;}

	byte * CreatePutSpace(size_t &size)
		{return AttachedTransformation()->CreatePutSpace(size);}
	size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking);
	size_t PutModifiable2(byte *inString, size_t length, int messageEnd, bool blocking);
	bool IsolatedMessageSeriesEnd(bool blocking);

private:
	size_t PutMaybeModifiable(byte *inString, size_t length, int messageEnd, bool blocking, bool modifiable);
	bool ShouldPropagateMessageEnd() const {return m_transparent;}
	bool ShouldPropagateMessageSeriesEnd() const {return m_transparent;}

	struct MessageRange
	{
		inline bool operator<(const MessageRange &b) const	// BCB2006 workaround: this has to be a member function
			{return message < b.message || (message == b.message && position < b.position);}
		unsigned int message; lword position; lword size;
	};

	bool m_transparent;
	lword m_currentMessageBytes, m_totalBytes;
	unsigned int m_currentSeriesMessages, m_totalMessages, m_totalMessageSeries;
	std::deque<MessageRange> m_rangesToSkip;
	byte *m_begin;
	size_t m_length;
};

//! _
class CRYPTOPP_DLL TransparentFilter : public MeterFilter
{
public:
	TransparentFilter(BufferedTransformation *attachment=NULL) : MeterFilter(attachment, true) {}
};

//! _
class CRYPTOPP_DLL 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 CRYPTOPP_DLL FilterWithBufferedInput : public Filter
{
public:
	FilterWithBufferedInput(BufferedTransformation *attachment);
	//! firstSize and lastSize may be 0, blockSize must be at least 1
	FilterWithBufferedInput(size_t firstSize, size_t blockSize, size_t lastSize, BufferedTransformation *attachment);

	void IsolatedInitialize(const NameValuePairs &parameters);
	size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking)
	{
		return PutMaybeModifiable(const_cast<byte *>(inString), length, messageEnd, blocking, false);
	}
	size_t PutModifiable2(byte *inString, size_t 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, size_t &firstSize, size_t &blockSize, size_t &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, size_t length);
	// Same as NextPutMultiple(), but inString can be modified
	virtual void NextPutModifiable(byte *inString, size_t 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, size_t length) =0;
	virtual void FlushDerived() {}

private:
	size_t PutMaybeModifiable(byte *begin, size_t length, int messageEnd, bool blocking, bool modifiable);
	void NextPutMaybeModifiable(byte *inString, size_t 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, size_t length) {assert(false); return 0;}

	class BlockQueue
	{
	public:
		void ResetQueue(size_t blockSize, size_t maxBlocks);
		byte *GetBlock();
		byte *GetContigousBlocks(size_t &numberOfBytes);
		size_t GetAll(byte *outString);
		void Put(const byte *inString, size_t length);
		size_t CurrentSize() const {return m_size;}
		size_t MaxSize() const {return m_buffer.size();}

	private:
		SecByteBlock m_buffer;
		size_t m_blockSize, m_maxBlocks, m_size;
		byte *m_begin;
	};

	size_t m_firstSize, m_blockSize, m_lastSize;
	bool m_firstInputDone;
	BlockQueue m_queue;
};

//! _
class CRYPTOPP_DLL FilterWithInputQueue : public Filter
{
public:
	FilterWithInputQueue(BufferedTransformation *attachment=NULL) : Filter(attachment) {}

	size_t Put2(const byte *inString, size_t 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 StreamTransformation

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久久久久久久久久久久久久 | 狠狠色狠狠色综合系列| 欧美日韩在线观看一区二区| 一区二区三区中文在线观看| 91免费观看视频在线| 一区二区三区日韩欧美| 欧美日韩国产在线播放网站| 日日噜噜夜夜狠狠视频欧美人 | 日韩电影免费在线| 精品久久久久久无| 国产成人一区二区精品非洲| 中文字幕精品一区| 91久久人澡人人添人人爽欧美| 亚洲精品国产成人久久av盗摄| 欧美在线一区二区三区| 天天影视网天天综合色在线播放 | 91久久线看在观草草青青| 亚洲图片一区二区| 日韩一区二区不卡| 国产一区二区久久| 国产精品成人一区二区艾草| 欧洲日韩一区二区三区| 日韩av在线免费观看不卡| 久久精品男人的天堂| 91丨porny丨蝌蚪视频| 亚洲一区二区免费视频| 欧美一卡二卡三卡| 成人福利电影精品一区二区在线观看| 久久97超碰国产精品超碰| 国产精品美女久久久久久| 欧美视频在线观看一区| 韩国一区二区三区| 一区二区三区高清不卡| 精品久久久网站| 欧美在线一二三四区| 韩国欧美国产1区| 夜夜夜精品看看| 国产三级一区二区三区| 欧美日韩一区二区三区四区| 国产精品一线二线三线精华| 午夜电影网一区| 国产精品麻豆欧美日韩ww| 欧美一区欧美二区| 色欧美乱欧美15图片| 国内成人自拍视频| 亚洲成人三级小说| 日韩毛片视频在线看| 久久青草欧美一区二区三区| 欧美日韩一区成人| 91视频在线看| 成人综合婷婷国产精品久久免费| 美女一区二区三区在线观看| 亚洲欧美另类小说| 国产精品日产欧美久久久久| 精品久久一区二区| 欧美一卡二卡三卡| 欧美视频在线不卡| 一本一本大道香蕉久在线精品| 国产69精品久久99不卡| 精彩视频一区二区| 人人精品人人爱| 亚洲午夜影视影院在线观看| 亚洲免费观看高清完整版在线观看熊 | 轻轻草成人在线| 亚洲影院理伦片| 亚洲综合一二区| 一区二区三区免费| 亚洲欧美国产毛片在线| 日韩美女久久久| 亚洲色图制服诱惑| 国产精品麻豆视频| 国产精品丝袜在线| 亚洲国产精华液网站w| 国产欧美一区二区三区鸳鸯浴 | 中文字幕在线一区| 欧美韩日一区二区三区四区| 久久男人中文字幕资源站| 久久综合久久综合九色| 久久综合久久久久88| 久久久不卡影院| 久久久亚洲欧洲日产国码αv| 日韩欧美一二三区| 精品福利在线导航| 精品国产免费一区二区三区香蕉| 日韩欧美国产高清| 精品国产乱码久久久久久闺蜜| 精品久久久影院| 国产三区在线成人av| 日本一区二区三区电影| 中文字幕的久久| 亚洲欧洲精品一区二区三区不卡| 亚洲婷婷在线视频| 亚洲h在线观看| 久久国产精品区| 福利一区二区在线| 色哟哟一区二区| 欧美日韩高清在线| 精品捆绑美女sm三区| 欧美激情在线一区二区| 亚洲欧美一区二区三区国产精品| 亚洲综合视频在线| 日韩成人av影视| 国产成人av电影在线播放| 91女厕偷拍女厕偷拍高清| 欧美色成人综合| www国产成人| 亚洲另类春色国产| 日韩国产高清影视| 国产mv日韩mv欧美| 欧美日韩在线播| 国产偷国产偷亚洲高清人白洁| 亚洲色图一区二区| 美女在线视频一区| 91捆绑美女网站| 精品国免费一区二区三区| 中文字幕在线观看一区| 日本va欧美va欧美va精品| 成人做爰69片免费看网站| 欧美性生活大片视频| 精品久久五月天| 亚洲综合激情小说| 国产精品99久| 欧美精品欧美精品系列| 中文字幕精品综合| 日本美女一区二区三区| 9久草视频在线视频精品| 欧美一区二区成人| 亚洲精品日韩一| 国产精品 欧美精品| 欧美熟乱第一页| 国产欧美日韩综合精品一区二区| 亚洲一区二区av在线| 国产福利精品导航| 日韩视频在线你懂得| 亚洲精品大片www| 国产东北露脸精品视频| 日韩精品中文字幕在线一区| 亚洲免费高清视频在线| 国产精品伊人色| 日韩精品一区二区三区中文精品| 一二三四区精品视频| av电影天堂一区二区在线| 欧美成人性福生活免费看| 亚洲第一电影网| 成人av网址在线| 久久精品免视看| 韩国v欧美v亚洲v日本v| 欧美一区二区视频在线观看2020| 亚洲线精品一区二区三区八戒| 成人av网站在线观看| 日本一区二区综合亚洲| 国产乱淫av一区二区三区 | 欧美性猛片aaaaaaa做受| 国产精品色一区二区三区| 国产自产v一区二区三区c| 日韩一区二区电影网| 日本中文一区二区三区| 欧美日韩在线亚洲一区蜜芽| 一个色综合av| 日本二三区不卡| 亚洲综合在线电影| 91久久奴性调教| 亚洲欧美日韩国产手机在线| 不卡的av在线播放| 中文字幕中文字幕一区二区| 成人激情开心网| 中文字幕综合网| 在线免费精品视频| 亚洲成人激情社区| 欧美精品777| 婷婷国产在线综合| 日韩欧美一级在线播放| 老色鬼精品视频在线观看播放| 日韩一区二区三区免费观看| 美女视频黄频大全不卡视频在线播放| 欧美一区二区视频网站| 捆绑紧缚一区二区三区视频| 精品美女一区二区三区| 国产在线精品国自产拍免费| 久久网这里都是精品| 国产成人精品一区二| 亚洲欧洲一区二区在线播放| 91麻豆视频网站| 亚洲亚洲人成综合网络| 91精品国产综合久久精品麻豆 | 国产性天天综合网| 成人一道本在线| 亚洲精品成人在线| 91精品一区二区三区久久久久久| 精品亚洲aⅴ乱码一区二区三区| 国产亚洲一二三区| 色成年激情久久综合| 婷婷成人综合网| 国产亚洲欧美日韩日本| 91在线无精精品入口| 亚洲大片精品永久免费| 亚洲精品一区二区三区精华液| 国产精品99久久久久久宅男| 亚洲精品国产精华液| 日韩欧美在线影院|