From 8e1f8022427c0f2b75515f62dfd8441b527dbe62 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 16 Apr 2007 00:36:51 +0000 Subject: 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 --- validat2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'validat2.cpp') 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; -- cgit v1.2.1