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

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

?? filters.h

?? AlgorithmType: SymmetricCipher Name: AES/ECB Source: NIST Special Publication 800-38A Plaintext:
?? 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一区二区三区免费野_久草精品视频
欧美日韩在线观看一区二区| 欧美国产乱子伦| 国产女人aaa级久久久级 | 欧美成人三级电影在线| 国产精品天美传媒沈樵| 日本三级亚洲精品| 色拍拍在线精品视频8848| 久久精品日产第一区二区三区高清版| 亚洲一二三四区不卡| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 中文字幕第一区综合| 毛片av一区二区| 欧美视频一二三区| 亚洲欧美区自拍先锋| 大美女一区二区三区| 26uuu久久综合| 日日骚欧美日韩| 在线看日本不卡| 亚洲人成网站色在线观看| 国产成人高清在线| 久久婷婷国产综合精品青草| 日本怡春院一区二区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产精品无遮挡| 懂色av一区二区三区免费看| 久久精品日韩一区二区三区| 韩国在线一区二区| 久久久亚洲国产美女国产盗摄| 奇米精品一区二区三区在线观看一| 欧美伊人久久大香线蕉综合69| 亚洲激情五月婷婷| 色先锋aa成人| 一区二区三区中文字幕电影| 色婷婷香蕉在线一区二区| 亚洲欧美aⅴ...| 91视频在线观看| 亚洲一本大道在线| 欧美一区二区三区精品| 老色鬼精品视频在线观看播放| 欧美一区二区三区公司| 国产在线视频一区二区三区| 中文字幕第一区综合| 99久久免费视频.com| 亚洲免费在线视频一区 二区| 色老汉av一区二区三区| 亚洲成人激情综合网| 3atv在线一区二区三区| 精品在线播放免费| 国产喂奶挤奶一区二区三区| 成人18视频在线播放| 一级精品视频在线观看宜春院 | 91蝌蚪porny| 亚洲国产综合在线| 91精品国产综合久久精品app| 日韩av电影一区| 国产午夜精品一区二区三区视频 | 亚洲激情在线激情| 欧美日韩高清一区二区不卡 | 亚洲精品一区二区三区福利| 国产中文一区二区三区| 亚洲免费视频中文字幕| 欧美日韩精品一区二区天天拍小说 | 色综合 综合色| 老司机免费视频一区二区三区| 国产欧美一区二区在线| 欧美视频一区二区在线观看| 精品一区二区三区的国产在线播放 | 日韩国产在线观看一区| 久久这里只有精品6| 色婷婷综合久色| 韩国女主播一区| 一区二区三区视频在线看| 欧美变态tickling挠脚心| 99久久综合99久久综合网站| 男女男精品视频网| 亚洲欧洲成人av每日更新| 欧美一区二区在线不卡| 99精品视频一区| 精彩视频一区二区三区| 香蕉乱码成人久久天堂爱免费| 久久久久高清精品| 91精品国产入口| 91同城在线观看| 国产在线精品免费| 首页国产欧美日韩丝袜| 国产精品乱人伦中文| 日韩欧美一区在线观看| 欧洲色大大久久| 97se亚洲国产综合在线| 国产成人av在线影院| 蜜桃av一区二区在线观看| 亚洲综合丁香婷婷六月香| 中文字幕国产一区| 久久先锋影音av| 日韩一区二区三区av| 精品视频免费在线| 色成年激情久久综合| 成人精品一区二区三区中文字幕| 狠狠色丁香婷婷综合| 天堂影院一区二区| 一区二区三区国产| 中文字幕一区二区在线观看| 久久久电影一区二区三区| 日韩精品一区二区三区四区| 制服丝袜日韩国产| 欧美人牲a欧美精品| 欧美日韩精品欧美日韩精品一综合| 91亚洲国产成人精品一区二三| 国产成人综合在线播放| 国产精品一区二区在线观看不卡| 麻豆精品在线播放| 美女视频免费一区| 久久成人免费网站| 精品午夜久久福利影院| 精品在线视频一区| 国产乱人伦偷精品视频不卡| 国产一区 二区 三区一级| 国产精品18久久久久久vr| 韩国v欧美v亚洲v日本v| 国产精品正在播放| 国产99精品国产| 91麻豆精东视频| 在线视频你懂得一区二区三区| 色狠狠一区二区三区香蕉| 在线亚洲一区观看| 欧美精品日韩一本| 精品国产免费视频| 国产校园另类小说区| 成人欧美一区二区三区白人 | 韩国三级在线一区| 成人午夜又粗又硬又大| 92国产精品观看| 欧美三级电影网站| 日韩视频在线永久播放| 欧美韩日一区二区三区四区| 亚洲欧洲精品一区二区精品久久久| 亚洲欧美日韩电影| 日韩精品久久理论片| 激情都市一区二区| 91无套直看片红桃| 日韩免费观看高清完整版| 国产日韩精品一区二区浪潮av| 亚洲精品欧美综合四区| 日本视频中文字幕一区二区三区| 国产一区中文字幕| 色94色欧美sute亚洲线路一久| 91精品国产综合久久精品性色| 国产午夜精品福利| 婷婷六月综合亚洲| 国产成人无遮挡在线视频| 在线观看视频一区二区欧美日韩| 日韩一区二区三区免费看| 中文字幕在线一区免费| 日日嗨av一区二区三区四区| 国产在线麻豆精品观看| 欧美色中文字幕| 国产精品入口麻豆原神| 首页亚洲欧美制服丝腿| 99麻豆久久久国产精品免费优播| 88在线观看91蜜桃国自产| 国产精品美女一区二区在线观看| 亚洲18色成人| 91香蕉视频污在线| 久久久久久免费网| 午夜精品福利久久久| 99re热这里只有精品免费视频 | 欧美区在线观看| 一区二区中文字幕在线| 极品少妇xxxx精品少妇| 欧美情侣在线播放| 亚洲精品伦理在线| 国产福利视频一区二区三区| 欧美二区三区的天堂| 亚洲激情图片qvod| av中文一区二区三区| 久久嫩草精品久久久精品| 日韩av二区在线播放| 欧美午夜一区二区三区| 最新国产精品久久精品| 国产精品一区不卡| 日韩精品中文字幕一区二区三区| 一级中文字幕一区二区| 91免费国产在线| 国产日韩亚洲欧美综合| 狠狠色丁香九九婷婷综合五月| 欧美视频精品在线观看| 一区二区三区中文免费| 91在线porny国产在线看| 中文子幕无线码一区tr| 国产一区二区三区在线观看免费视频| 制服丝袜一区二区三区| 日本亚洲一区二区| 欧美日韩国产欧美日美国产精品| 亚洲图片欧美视频| 欧美日韩一区二区在线视频| 亚洲一区二区在线播放相泽| 欧美日韩在线一区二区| 偷窥国产亚洲免费视频| 91精品国产综合久久国产大片| 视频一区中文字幕国产|