diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-26 15:21:36 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-26 15:21:36 -0500 |
commit | 21cd665a1ce3312440ba9b53ab184b80c75c6158 (patch) | |
tree | 27ab243bda30e4d92d8edaefb3f92e0bbf61b83f /validat7.cpp | |
parent | d0245a49719a03bd86c7a860a30c8a5a99a55fb5 (diff) | |
download | cryptopp-git-21cd665a1ce3312440ba9b53ab184b80c75c6158.tar.gz |
Fix TestEd25519 for Debug builds on PowerPC
Diffstat (limited to 'validat7.cpp')
-rw-r--r-- | validat7.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/validat7.cpp b/validat7.cpp index 517b365c..b240993f 100644 --- a/validat7.cpp +++ b/validat7.cpp @@ -570,12 +570,10 @@ bool TestEd25519() ed25519Verifier verifier(pk);
int flags = SignatureVerificationFilter::THROW_EXCEPTION | SignatureVerificationFilter::SIGNATURE_AT_END;
- int result;
std::string msg_sig = std::string((char*)msg, sizeof(msg)) + std::string((char*)sig, sizeof(sig));
- StringSource(msg_sig, true, new SignatureVerificationFilter(verifier, new ArraySink((byte*)&result, sizeof(result)), flags));
+ StringSource(msg_sig, true, new SignatureVerificationFilter(verifier, NULLPTR, flags));
- if (result == 0)
- throw Exception(Exception::OTHER_ERROR, "TestEd25519: SignatureVerificationFilter");
+ // No throw is success
}
catch(const Exception&)
{
|