亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲欧洲99久久| 亚洲视频一二三区| 91猫先生在线| 韩国理伦片一区二区三区在线播放| 国产精品水嫩水嫩| 26uuu久久天堂性欧美| 欧美日韩在线亚洲一区蜜芽| www.亚洲在线| 国产一区不卡在线| 蜜乳av一区二区| 亚洲国产中文字幕在线视频综合| 中文字幕二三区不卡| 精品国精品自拍自在线| 欧美日韩一区二区在线观看 | 在线一区二区三区做爰视频网站| 国产一区福利在线| 欧美aⅴ一区二区三区视频| 亚洲国产精品一区二区久久恐怖片| 亚洲国产精品成人综合色在线婷婷| 制服丝袜av成人在线看| 91黄视频在线| 色婷婷国产精品| 99免费精品在线观看| 国产凹凸在线观看一区二区| 极品少妇xxxx偷拍精品少妇| 日本亚洲电影天堂| 亚洲电影一级黄| 亚洲亚洲人成综合网络| 亚洲综合久久久久| 亚洲综合久久久| 亚洲国产视频一区| 亚洲国产aⅴ天堂久久| 亚洲一区二区中文在线| 亚洲综合色视频| 亚洲一二三四久久| 亚洲综合一区二区精品导航| 亚洲最新视频在线观看| 亚洲一级二级三级在线免费观看| 亚洲欧美激情在线| 一级中文字幕一区二区| 亚洲成人精品影院| 日韩在线一区二区| 精彩视频一区二区| 粉嫩在线一区二区三区视频| 国产mv日韩mv欧美| av电影天堂一区二区在线| 91在线视频播放地址| 91久久久免费一区二区| 欧美日韩一级片在线观看| 777久久久精品| 亚洲精品一区二区三区香蕉| 久久人人97超碰com| 欧美国产1区2区| 亚洲天堂av一区| 五月激情综合网| 国内久久精品视频| 成人精品鲁一区一区二区| 色综合一个色综合亚洲| 精品1区2区3区| 精品美女在线播放| 欧美激情一区二区三区在线| 一区二区三区在线免费视频| 日韩电影在线看| 国产一区二区伦理片| 91免费国产在线| 欧美一区二区三区小说| 国产午夜精品福利| 一区二区激情视频| 九色综合国产一区二区三区| 成人免费视频播放| 在线电影国产精品| 国产三级一区二区| 亚洲午夜视频在线| 国产乱色国产精品免费视频| 91麻豆高清视频| 欧美大胆人体bbbb| 亚洲欧洲三级电影| 蜜臀久久99精品久久久久久9| 懂色av一区二区三区蜜臀 | 91网站在线播放| 欧美精品久久99| 国产无人区一区二区三区| 亚洲国产人成综合网站| 国产一区二三区| 欧美亚洲国产一区在线观看网站| 欧美精品一区二区三区蜜桃 | 欧美日本一区二区| 国产亚洲成年网址在线观看| 亚洲va中文字幕| 成人一道本在线| 日韩欧美123| 亚洲综合偷拍欧美一区色| 国产老女人精品毛片久久| 精品视频免费看| 中文字幕在线视频一区| 狠狠色丁香久久婷婷综| 欧美日韩免费在线视频| 国产精品欧美极品| 极品少妇xxxx精品少妇| 欧美日韩一区 二区 三区 久久精品| 久久久久九九视频| 奇米一区二区三区av| 欧洲国内综合视频| 国产精品第四页| 国产成人自拍网| 欧美成人aa大片| 亚洲gay无套男同| 91官网在线观看| 综合色天天鬼久久鬼色| 国产精品一二三四| 日韩免费观看高清完整版 | 中文字幕一区二区三区视频| 久久99国产精品久久99| 欧美日本国产一区| 亚洲福利视频三区| 在线观看日韩精品| 亚洲日本一区二区| av资源网一区| 欧美国产精品一区二区三区| 精品午夜久久福利影院| 欧美一区二区观看视频| 天天综合网天天综合色| 欧美图片一区二区三区| 一区二区三区四区中文字幕| 99r精品视频| 亚洲图片你懂的| 91丨porny丨蝌蚪视频| 国产精品国产三级国产aⅴ原创| 国产精品123| 国产女人aaa级久久久级| 国产一区二区精品在线观看| 久久综合狠狠综合| 精品一区二区免费视频| 精品美女一区二区| 国产真实乱子伦精品视频| 久久综合国产精品| 国产成人精品免费视频网站| 国产精品视频观看| 99精品视频在线免费观看| 亚洲精品高清在线| 精品视频1区2区| 日本成人在线电影网| 日韩欧美一二三| 国产剧情一区在线| 国产精品久久久久久福利一牛影视| 97久久人人超碰| 亚洲午夜免费电影| 91精品国产综合久久精品app| 免费成人性网站| 亚洲精品一线二线三线| 国产 欧美在线| 亚洲欧洲日韩一区二区三区| 日本道色综合久久| 首页国产欧美日韩丝袜| 精品欧美一区二区在线观看| 国产精一区二区三区| 亚洲三级在线看| 欧美伦理影视网| 狠狠狠色丁香婷婷综合久久五月| 欧美国产禁国产网站cc| 欧美无砖专区一中文字| 久久国产精品一区二区| 中文字幕乱码一区二区免费| 在线精品观看国产| 国产在线国偷精品产拍免费yy | 久久精品久久精品| 国产日产欧产精品推荐色| 色欧美片视频在线观看 | 日韩中文字幕亚洲一区二区va在线 | 青草av.久久免费一区| 2021中文字幕一区亚洲| 91麻豆国产福利在线观看| 奇米888四色在线精品| 欧美国产成人在线| 欧美日韩精品一区二区三区四区 | 国产婷婷一区二区| 欧美无砖专区一中文字| 国产一区二三区| 午夜精品一区二区三区免费视频| 精品国产乱码久久久久久浪潮| 97精品电影院| 久久99精品久久久久| 亚洲一区二区影院| 久久久精品黄色| 欧美日韩成人高清| 成人蜜臀av电影| 久久成人免费网站| 亚洲国产wwwccc36天堂| 国产欧美一区二区精品久导航| 欧美日韩一区二区三区在线看| 福利一区二区在线| 男男成人高潮片免费网站| 亚洲欧美一区二区三区极速播放| 精品少妇一区二区三区视频免付费 | 免费观看一级欧美片| 亚洲精品日日夜夜| 亚洲国产成人在线| 久久嫩草精品久久久久| 制服丝袜中文字幕一区| 在线观看国产日韩|