diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
commit | f278895908e663a6a5a2c1f63e5523c5004f5d20 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /simple.cpp | |
parent | e43f74604744291d3a99b8bfe81d94af4ba6abbd (diff) | |
download | cryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'simple.cpp')
-rw-r--r-- | simple.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -1,23 +1,14 @@ // simple.cpp - written and placed in the public domain by Wei Dai #include "pch.h" + +#ifndef CRYPTOPP_IMPORTS + #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 + +#endif |