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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? filters.h

?? 利用VC編寫的加解密算法程序,包括DES、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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久丁香综合五月国产三级网站| 国产三级欧美三级| 一区二区三区 在线观看视频| 色综合天天做天天爱| 一区二区三区欧美| 欧美老女人第四色| 男人操女人的视频在线观看欧美| 日韩欧美国产成人一区二区| 狠狠色狠狠色综合| 国产亚洲一区二区三区四区 | 日韩欧美在线影院| 久久国内精品自在自线400部| 久久久久久久av麻豆果冻| 成人精品高清在线| 一卡二卡欧美日韩| 日韩欧美国产精品| 99久久久久免费精品国产| 午夜精品免费在线观看| 精品久久久久久无| 97久久超碰精品国产| 午夜欧美一区二区三区在线播放| 日韩欧美在线网站| 91麻豆6部合集magnet| 日韩电影在线观看一区| 国产精品天美传媒沈樵| 欧美日韩一区二区三区高清 | 久久众筹精品私拍模特| www.亚洲国产| 日本在线观看不卡视频| 国产精品伦理在线| 91精品国产一区二区人妖| 国产精品一区二区久久精品爱涩| 亚洲免费高清视频在线| 91精品国产福利| av网站免费线看精品| 毛片av一区二区| 亚洲欧美电影一区二区| 精品裸体舞一区二区三区| 在线视频亚洲一区| 国产v日产∨综合v精品视频| 亚洲aⅴ怡春院| 中文字幕一区二区三区乱码在线| 欧美一区二区三区白人| 91日韩一区二区三区| 韩国成人精品a∨在线观看| 亚洲精品中文在线影院| 久久精品亚洲一区二区三区浴池| 欧美日免费三级在线| 成人h精品动漫一区二区三区| 免费观看日韩av| 亚洲自拍偷拍欧美| 国产精品无圣光一区二区| 精品理论电影在线观看| 精品视频一区二区不卡| 99久久er热在这里只有精品66| 美国十次综合导航| 亚洲电影一区二区三区| 亚洲欧美日韩在线不卡| 国产精品女上位| 久久综合久久综合亚洲| 欧美一卡2卡3卡4卡| 在线视频亚洲一区| 91黄色激情网站| www.欧美.com| 成人毛片老司机大片| 国产精品456| 黄色小说综合网站| 久久99精品久久久久久国产越南 | 日韩午夜电影在线观看| 欧美日韩和欧美的一区二区| 色老头久久综合| 一本久久a久久精品亚洲| 不卡一区二区三区四区| 成人动漫一区二区在线| 不卡的av在线| 99久久精品国产观看| 91蜜桃网址入口| 色婷婷一区二区三区四区| 色视频欧美一区二区三区| 91免费国产视频网站| 91亚洲大成网污www| 波多野结衣一区二区三区| 91视频一区二区三区| 97久久超碰国产精品电影| 91蜜桃婷婷狠狠久久综合9色| 色激情天天射综合网| 欧美猛男男办公室激情| 91麻豆精品国产| 日韩女优av电影| 欧美经典三级视频一区二区三区| 国产精品免费视频一区| 亚洲人成网站在线| 亚洲午夜免费视频| 视频一区在线播放| 精品一区二区三区免费| 丁香婷婷综合五月| 99re6这里只有精品视频在线观看| 色婷婷综合五月| 欧美一区二区日韩| 久久伊人中文字幕| 中文字幕中文字幕一区二区| 一区av在线播放| 久久电影网电视剧免费观看| 懂色av噜噜一区二区三区av| 91麻豆成人久久精品二区三区| 欧美性猛片aaaaaaa做受| 91精品国产乱码| 久久综合久久久久88| 国产精品久久久久久久久免费丝袜| 亚洲欧美日韩国产综合在线| 日韩成人av影视| 国产一区二区三区高清播放| 91亚洲精华国产精华精华液| 欧美肥胖老妇做爰| 国产欧美精品一区二区色综合 | 成人免费高清在线观看| 在线一区二区观看| 久久先锋资源网| 亚洲精品老司机| 狠狠色丁香久久婷婷综合_中| 99视频国产精品| 欧美xxxxxxxxx| 亚洲综合丝袜美腿| 国产精品夜夜嗨| 欧美日韩精品电影| 国产精品美女久久久久久2018| 亚洲国产精品一区二区www在线| 极品瑜伽女神91| 欧美色综合天天久久综合精品| 久久综合精品国产一区二区三区 | 国产一区二区三区观看| 在线看日韩精品电影| 国产欧美一区二区精品婷婷| 天天av天天翘天天综合网| av资源网一区| 久久婷婷国产综合国色天香| 亚洲不卡在线观看| 成人精品国产一区二区4080| 26uuu成人网一区二区三区| 亚洲一区二区三区视频在线播放| 成人一区二区三区在线观看| 欧美一级午夜免费电影| 性感美女极品91精品| 91麻豆国产香蕉久久精品| 国产亚洲短视频| 九九国产精品视频| 欧美老年两性高潮| 亚洲精品久久久蜜桃| 成人av一区二区三区| 精品国产一区二区亚洲人成毛片| 亚洲不卡av一区二区三区| 色综合久久久久| 国产精品久久久久影院亚瑟| 国产高清精品久久久久| 精品黑人一区二区三区久久| 日韩av电影天堂| 欧美日韩亚洲高清一区二区| 一区二区视频在线| 99视频在线观看一区三区| 国产精品三级av| 成人午夜私人影院| 国产精品区一区二区三区| 国产精品亚洲午夜一区二区三区| 欧美体内she精高潮| 国产91精品一区二区麻豆亚洲| 亚洲成人综合在线| 色94色欧美sute亚洲线路一久 | 欧美日韩精品福利| 亚洲一区二区在线免费看| 91麻豆免费看| 一区二区三区日韩精品视频| 欧美亚洲禁片免费| 亚洲电影视频在线| 51精品秘密在线观看| 日本伊人色综合网| 日韩一区二区影院| 精品一区二区三区香蕉蜜桃| 精品国产麻豆免费人成网站| 美腿丝袜亚洲一区| 精品区一区二区| 国产一区二区福利| 中文字幕 久热精品 视频在线| www.爱久久.com| 亚洲激情综合网| 欧美久久久久中文字幕| 日韩av一区二区在线影视| 日韩欧美高清在线| 国产福利一区在线| 在线成人免费视频| 国产精品77777竹菊影视小说| 久久综合综合久久综合| 91精品国产乱码| 激情图区综合网| 欧美国产精品劲爆| 欧美亚洲国产一区在线观看网站| 亚洲国产综合在线| 欧美一卡2卡3卡4卡| 国产成人精品免费视频网站| 亚洲黄色在线视频| 国产夫妻精品视频|