这是密码学数字签名算法的代码

源代码在线查看: simple.cpp

软件大小: 18319 K
上传用户: evenxyz
关键词: 密码 代码 数字签名算法
下载地址: 免注册下载 普通下载 VIP

相关代码

				// simple.cpp - written and placed in the public domain by Wei Dai
				
				#include "pch.h"
				#include "simple.h"
				#include "secblock.h"
				
				NAMESPACE_BEGIN(CryptoPP)
				
				void HashTransformationWithDefaultTruncation::TruncatedFinal(byte *digest, unsigned int digestSize)
				{
					ThrowIfInvalidTruncatedSize(digestSize);
					unsigned int fullDigestSize = DigestSize();
					if (digestSize == fullDigestSize)
						Final(digest);
					else
					{
						SecByteBlock buffer(fullDigestSize);
						Final(buffer);
						memcpy(digest, buffer, digestSize);
					}
				}
				
				NAMESPACE_END
							

相关资源