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

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

?? cryptlib.cpp

?? 常用字符串hash算法
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// cryptlib.cpp - written and placed in the public domain by Wei Dai#include "pch.h"#include "cryptlib.h"#include "misc.h"#include "filters.h"#include "algparam.h"#include "fips140.h"#include "argnames.h"#include <memory>NAMESPACE_BEGIN(CryptoPP)CRYPTOPP_COMPILE_ASSERT(sizeof(byte) == 1);CRYPTOPP_COMPILE_ASSERT(sizeof(word16) == 2);CRYPTOPP_COMPILE_ASSERT(sizeof(word32) == 4);#ifdef WORD64_AVAILABLECRYPTOPP_COMPILE_ASSERT(sizeof(word64) == 8);#endifCRYPTOPP_COMPILE_ASSERT(sizeof(dword) == 2*sizeof(word));const std::string BufferedTransformation::NULL_CHANNEL;const NullNameValuePairs g_nullNameValuePairs;BufferedTransformation & TheBitBucket(){	static BitBucket bitBucket;	return bitBucket;}Algorithm::Algorithm(bool checkSelfTestStatus){	if (checkSelfTestStatus && FIPS_140_2_ComplianceEnabled())	{		if (GetPowerUpSelfTestStatus() == POWER_UP_SELF_TEST_NOT_DONE && !PowerUpSelfTestInProgressOnThisThread())			throw SelfTestFailure("Cryptographic algorithms are disabled before the power-up self tests are performed.");		if (GetPowerUpSelfTestStatus() == POWER_UP_SELF_TEST_FAILED)			throw SelfTestFailure("Cryptographic algorithms are disabled after power-up a self test failed.");	}}void SimpleKeyingInterface::SetKeyWithRounds(const byte *key, unsigned int length, int rounds){	SetKey(key, length, MakeParameters(Name::Rounds(), rounds));}void SimpleKeyingInterface::SetKeyWithIV(const byte *key, unsigned int length, const byte *iv){	SetKey(key, length, MakeParameters(Name::IV(), iv));}void SimpleKeyingInterface::ThrowIfInvalidKeyLength(const Algorithm &algorithm, unsigned int length){	if (!IsValidKeyLength(length))		throw InvalidKeyLength(algorithm.AlgorithmName(), length);}void BlockTransformation::ProcessAndXorMultipleBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, unsigned int numberOfBlocks) const{	unsigned int blockSize = BlockSize();	while (numberOfBlocks--)	{		ProcessAndXorBlock(inBlocks, xorBlocks, outBlocks);		inBlocks += blockSize;		outBlocks += blockSize;		if (xorBlocks)			xorBlocks += blockSize;	}}void StreamTransformation::ProcessLastBlock(byte *outString, const byte *inString, unsigned int length){	assert(MinLastBlockSize() == 0);	// this function should be overriden otherwise	if (length == MandatoryBlockSize())		ProcessData(outString, inString, length);	else if (length != 0)		throw NotImplemented("StreamTransformation: this object does't support a special last block");}unsigned int RandomNumberGenerator::GenerateBit(){	return Parity(GenerateByte());}void RandomNumberGenerator::GenerateBlock(byte *output, unsigned int size){	while (size--)		*output++ = GenerateByte();}word32 RandomNumberGenerator::GenerateWord32(word32 min, word32 max){	word32 range = max-min;	const int maxBytes = BytePrecision(range);	const int maxBits = BitPrecision(range);	word32 value;	do	{		value = 0;		for (int i=0; i<maxBytes; i++)			value = (value << 8) | GenerateByte();		value = Crop(value, maxBits);	} while (value > range);	return value+min;}void RandomNumberGenerator::DiscardBytes(unsigned int n){	while (n--)		GenerateByte();}RandomNumberGenerator & NullRNG(){	class NullRNG : public RandomNumberGenerator	{	public:		std::string AlgorithmName() const {return "NullRNG";}		byte GenerateByte() {throw NotImplemented("NullRNG: NullRNG should only be passed to functions that don't need to generate random bytes");}	};	static NullRNG s_nullRNG;	return s_nullRNG;}bool HashTransformation::TruncatedVerify(const byte *digestIn, unsigned int digestLength){	ThrowIfInvalidTruncatedSize(digestLength);	SecByteBlock digest(digestLength);	TruncatedFinal(digest, digestLength);	return memcmp(digest, digestIn, digestLength) == 0;}void HashTransformation::ThrowIfInvalidTruncatedSize(unsigned int size) const{	if (size > DigestSize())		throw InvalidArgument("HashTransformation: can't truncate a " + IntToString(DigestSize()) + " byte digest to " + IntToString(size) + " bytes");}unsigned int BufferedTransformation::GetMaxWaitObjectCount() const{	const BufferedTransformation *t = AttachedTransformation();	return t ? t->GetMaxWaitObjectCount() : 0;}void BufferedTransformation::GetWaitObjects(WaitObjectContainer &container){	BufferedTransformation *t = AttachedTransformation();	if (t)		t->GetWaitObjects(container);}void BufferedTransformation::Initialize(const NameValuePairs &parameters, int propagation){	assert(!AttachedTransformation());	IsolatedInitialize(parameters);}bool BufferedTransformation::Flush(bool hardFlush, int propagation, bool blocking){	assert(!AttachedTransformation());	return IsolatedFlush(hardFlush, blocking);}bool BufferedTransformation::MessageSeriesEnd(int propagation, bool blocking){	assert(!AttachedTransformation());	return IsolatedMessageSeriesEnd(blocking);}byte * BufferedTransformation::ChannelCreatePutSpace(const std::string &channel, unsigned int &size){	if (channel.empty())		return CreatePutSpace(size);	else		throw NoChannelSupport();}unsigned int BufferedTransformation::ChannelPut2(const std::string &channel, const byte *begin, unsigned int length, int messageEnd, bool blocking){	if (channel.empty())		return Put2(begin, length, messageEnd, blocking);	else		throw NoChannelSupport();}unsigned int BufferedTransformation::ChannelPutModifiable2(const std::string &channel, byte *begin, unsigned int length, int messageEnd, bool blocking){	if (channel.empty())		return PutModifiable2(begin, length, messageEnd, blocking);	else		return ChannelPut2(channel, begin, length, messageEnd, blocking);}void BufferedTransformation::ChannelInitialize(const std::string &channel, const NameValuePairs &parameters, int propagation){	if (channel.empty())		Initialize(parameters, propagation);	else		throw NoChannelSupport();}bool BufferedTransformation::ChannelFlush(const std::string &channel, bool completeFlush, int propagation, bool blocking){	if (channel.empty())		return Flush(completeFlush, propagation, blocking);	else		throw NoChannelSupport();}bool BufferedTransformation::ChannelMessageSeriesEnd(const std::string &channel, int propagation, bool blocking){	if (channel.empty())		return MessageSeriesEnd(propagation, blocking);	else		throw NoChannelSupport();}unsigned long BufferedTransformation::MaxRetrievable() const{	if (AttachedTransformation())		return AttachedTransformation()->MaxRetrievable();	else		return CopyTo(TheBitBucket());}bool BufferedTransformation::AnyRetrievable() const{	if (AttachedTransformation())		return AttachedTransformation()->AnyRetrievable();	else	{		byte b;		return Peek(b) != 0;	}}unsigned int BufferedTransformation::Get(byte &outByte){	if (AttachedTransformation())		return AttachedTransformation()->Get(outByte);	else		return Get(&outByte, 1);}unsigned int BufferedTransformation::Get(byte *outString, unsigned int getMax){	if (AttachedTransformation())		return AttachedTransformation()->Get(outString, getMax);	else	{		ArraySink arraySink(outString, getMax);		return TransferTo(arraySink, getMax);	}}unsigned int BufferedTransformation::Peek(byte &outByte) const{	if (AttachedTransformation())		return AttachedTransformation()->Peek(outByte);	else		return Peek(&outByte, 1);}unsigned int BufferedTransformation::Peek(byte *outString, unsigned int peekMax) const{	if (AttachedTransformation())		return AttachedTransformation()->Peek(outString, peekMax);	else	{		ArraySink arraySink(outString, peekMax);		return CopyTo(arraySink, peekMax);	}}unsigned long BufferedTransformation::Skip(unsigned long skipMax){	if (AttachedTransformation())		return AttachedTransformation()->Skip(skipMax);	else		return TransferTo(TheBitBucket(), skipMax);}unsigned long BufferedTransformation::TotalBytesRetrievable() const{	if (AttachedTransformation())		return AttachedTransformation()->TotalBytesRetrievable();	else		return MaxRetrievable();}unsigned int BufferedTransformation::NumberOfMessages() const{	if (AttachedTransformation())		return AttachedTransformation()->NumberOfMessages();	else		return CopyMessagesTo(TheBitBucket());}bool BufferedTransformation::AnyMessages() const{	if (AttachedTransformation())		return AttachedTransformation()->AnyMessages();	else		return NumberOfMessages() != 0;}bool BufferedTransformation::GetNextMessage(){	if (AttachedTransformation())		return AttachedTransformation()->GetNextMessage();	else	{		assert(!AnyMessages());		return false;	}}unsigned int BufferedTransformation::SkipMessages(unsigned int count){	if (AttachedTransformation())		return AttachedTransformation()->SkipMessages(count);	else		return TransferMessagesTo(TheBitBucket(), count);}unsigned int BufferedTransformation::TransferMessagesTo2(BufferedTransformation &target, unsigned int &messageCount, const std::string &channel, bool blocking){	if (AttachedTransformation())		return AttachedTransformation()->TransferMessagesTo2(target, messageCount, channel, blocking);	else	{		unsigned int maxMessages = messageCount;		for (messageCount=0; messageCount < maxMessages && AnyMessages(); messageCount++)		{			unsigned int blockedBytes;			unsigned long transferedBytes;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃久久久久久| 欧美日本在线视频| 337p亚洲精品色噜噜噜| 国产亚洲一区二区在线观看| 亚洲精品成人在线| 成人一区二区三区中文字幕| 欧美视频一区在线| 国产精品久线观看视频| 日韩精品电影一区亚洲| 91国偷自产一区二区三区成为亚洲经典 | 91福利在线观看| 国产欧美日韩在线| 国模无码大尺度一区二区三区| 色婷婷国产精品| 国产精品视频你懂的| 精品一区二区三区久久久| 欧美色图天堂网| 亚洲免费观看高清完整版在线观看 | 美女视频一区二区三区| 色婷婷综合久久久中文字幕| 欧美国产日本韩| 粉嫩嫩av羞羞动漫久久久| 欧美不卡在线视频| 美女免费视频一区| 日韩欧美国产高清| 琪琪久久久久日韩精品| 欧美高清www午色夜在线视频| 亚洲欧美一区二区不卡| 91丝袜呻吟高潮美腿白嫩在线观看| 久久精品亚洲国产奇米99| 久久99精品久久久| 欧美不卡一二三| 久草这里只有精品视频| 欧美v亚洲v综合ⅴ国产v| 久久成人久久鬼色| 久久久久国产精品麻豆| 成人午夜伦理影院| 国产精品久久久久三级| 成人午夜视频网站| 自拍偷拍欧美精品| 在线视频欧美区| 婷婷久久综合九色综合伊人色| 欧美日韩一区二区三区视频| 午夜欧美大尺度福利影院在线看| 欧美日韩国产一级片| 美女视频黄久久| 国产色综合一区| 91首页免费视频| 亚洲午夜久久久久中文字幕久| 欧美日韩精品一区二区天天拍小说 | 欧美一区二区三级| 狠狠色狠狠色综合日日91app| 久久久久国产精品麻豆ai换脸| 粉嫩嫩av羞羞动漫久久久| 国产精品国产三级国产aⅴ原创| 一本到不卡精品视频在线观看| 亚洲国产综合在线| 精品久久久久久久久久久院品网| 国产99久久久久| 亚洲一级不卡视频| 精品国产精品网麻豆系列| 懂色av一区二区三区免费看| 亚洲一区在线观看网站| 精品人伦一区二区色婷婷| 成人av资源下载| 婷婷综合久久一区二区三区| 久久精品视频一区二区三区| 91亚洲国产成人精品一区二三| 肉丝袜脚交视频一区二区| 国产亚洲精品aa午夜观看| 99精品国产热久久91蜜凸| 日本欧美久久久久免费播放网| 欧美激情在线观看视频免费| 欧美三级蜜桃2在线观看| 国产福利视频一区二区三区| 亚洲综合精品久久| 中文字幕高清不卡| 51精品秘密在线观看| 99亚偷拍自图区亚洲| 人禽交欧美网站| 亚洲另类在线制服丝袜| 久久久久久**毛片大全| 91麻豆精品国产自产在线观看一区| 久久成人麻豆午夜电影| 亚洲成人激情自拍| 国产精品福利电影一区二区三区四区| 51精品久久久久久久蜜臀| 91丨porny丨国产| 国产高清不卡一区| 美腿丝袜亚洲色图| 亚洲aaa精品| 亚洲免费av高清| 中文一区在线播放| 国产无人区一区二区三区| 91在线视频播放地址| 国产精品中文字幕日韩精品| 天天影视色香欲综合网老头| 亚洲欧美成人一区二区三区| 国产精品系列在线| 久久久亚洲综合| 精品国产伦一区二区三区观看方式| 欧美三级中文字| 91成人免费电影| 91福利在线导航| 在线一区二区三区四区五区| 99久久精品国产麻豆演员表| 国产不卡免费视频| 国产成人精品综合在线观看 | 在线免费亚洲电影| 99久久精品情趣| 高清成人免费视频| 成人影视亚洲图片在线| 成人免费高清在线| a级高清视频欧美日韩| 成人激情图片网| www.欧美色图| 色婷婷综合久久| 在线免费观看一区| 欧美吞精做爰啪啪高潮| 色婷婷精品久久二区二区蜜臀av| www.性欧美| 在线视频欧美精品| 欧美群妇大交群的观看方式| 欧美日韩五月天| 3d动漫精品啪啪1区2区免费| 日韩视频一区二区| 久久美女艺术照精彩视频福利播放| 精品sm捆绑视频| 国产精品色在线| 亚洲精品中文在线观看| 午夜精品久久久久久久久| 日韩激情一二三区| 国产在线精品国自产拍免费| 国产黄人亚洲片| 91理论电影在线观看| 欧美亚洲一区二区在线观看| 91精品国产欧美一区二区| 久久免费精品国产久精品久久久久 | 成人综合婷婷国产精品久久蜜臀 | av在线这里只有精品| 在线一区二区三区| 欧美一区日韩一区| 国产日产欧美一区二区视频| 国产精品女主播av| 亚洲成人在线观看视频| 韩国v欧美v日本v亚洲v| 91视频精品在这里| 欧美综合色免费| 久久色成人在线| 亚洲精品综合在线| 激情欧美日韩一区二区| 一本久道久久综合中文字幕| 欧美精品成人一区二区三区四区| 久久综合九色综合欧美98| 亚洲精品国产一区二区精华液 | 粉嫩欧美一区二区三区高清影视| 91久久线看在观草草青青| 日韩精品一区二区在线| 综合电影一区二区三区 | 中文一区在线播放| 亚洲二区在线视频| 懂色av一区二区三区免费看| 欧美精三区欧美精三区| 国产精品国产馆在线真实露脸 | 国产精品另类一区| 日韩av高清在线观看| 99免费精品在线观看| 欧美大度的电影原声| 一区二区欧美在线观看| 国产成人综合视频| 制服视频三区第一页精品| 18欧美亚洲精品| 国产美女娇喘av呻吟久久| 在线播放91灌醉迷j高跟美女| 国产欧美日韩中文久久| 奇米影视在线99精品| 91国在线观看| 成人欧美一区二区三区小说| 国产一区在线精品| 91麻豆精品国产自产在线| 一区二区三区在线视频播放| 国产高清精品久久久久| 欧美成人乱码一区二区三区| 午夜久久福利影院| 一本一道波多野结衣一区二区| 久久久久88色偷偷免费| 久久成人久久爱| 欧美一区日韩一区| 午夜精品久久久久久久久久| 91国偷自产一区二区三区成为亚洲经典 | 五月婷婷欧美视频| 在线亚洲精品福利网址导航| 自拍偷拍国产精品| aaa亚洲精品一二三区| 久久久精品tv| 国产精品综合二区| 久久女同性恋中文字幕| 韩日欧美一区二区三区| 精品国产3级a| 精品系列免费在线观看|