summaryrefslogtreecommitdiff
path: root/validat2.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 00:36:51 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 00:36:51 +0000
commit8e1f8022427c0f2b75515f62dfd8441b527dbe62 (patch)
tree4e8c01e958f0bc3e94aa8a536b865edda1a11ac5 /validat2.cpp
parent4ff094871c8ef6c0462f04469fca19ee673b075d (diff)
downloadcryptopp-8e1f8022427c0f2b75515f62dfd8441b527dbe62.tar.gz
move MD2, MD4, MD5, PanamaHash, WAKE_CFB into the namespace 'Weak'
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@314 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'validat2.cpp')
-rw-r--r--validat2.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/validat2.cpp b/validat2.cpp
index 28f77c6..4154f5e 100644
--- a/validat2.cpp
+++ b/validat2.cpp
@@ -2,6 +2,7 @@
#include "pch.h"
+#define CRYPTOPP_ENABLE_NAMESPACE_WEAK
#include "blumshub.h"
#include "rsa.h"
#include "md2.h"
@@ -270,8 +271,8 @@ bool ValidateRSA()
"\x5c\x77\xdf\xd9\xb1\x5b\xfc\x3d\x55\x93\x53\x50\x34\x10\xc1\xe1";
FileSource keys("rsa512a.dat", true, new HexDecoder);
- RSASSA_PKCS1v15_MD2_Signer rsaPriv(keys);
- RSASSA_PKCS1v15_MD2_Verifier rsaPub(rsaPriv);
+ Weak::RSASSA_PKCS1v15_MD2_Signer rsaPriv(keys);
+ Weak::RSASSA_PKCS1v15_MD2_Verifier rsaPub(rsaPriv);
size_t signatureLength = rsaPriv.SignMessage(GlobalRNG(), (byte *)plain, strlen(plain), out);
fail = memcmp(signature, out, 64) != 0;