summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-18 04:51:50 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-18 04:51:50 -0400
commitadfb30a57967888a35d38072453a59dff9f81a11 (patch)
tree207056bac2b64aaed17462b8502bbee9ac932bde /validat1.cpp
parent4039b21b39b15582ed34f47074b2b7fd6795119e (diff)
downloadcryptopp-git-adfb30a57967888a35d38072453a59dff9f81a11.tar.gz
Clear Coverity finding CHECKED_RETURN (CID 182769)
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/validat1.cpp b/validat1.cpp
index d49ff812..10e6932d 100644
--- a/validat1.cpp
+++ b/validat1.cpp
@@ -1786,9 +1786,9 @@ bool BlockTransformationTest(const CipherFactory &cg, BufferedTransformation &va
while (valdata.MaxRetrievable() && tuples--)
{
- valdata.Get(key, cg.KeyLength());
- valdata.Get(plain, cg.BlockSize());
- valdata.Get(cipher, cg.BlockSize());
+ (void)valdata.Get(key, cg.KeyLength());
+ (void)valdata.Get(plain, cg.BlockSize());
+ (void)valdata.Get(cipher, cg.BlockSize());
member_ptr<BlockTransformation> transE(cg.NewEncryption(key));
transE->ProcessBlock(plain, out);
@@ -2253,11 +2253,11 @@ bool ValidateRC2()
{
byte keyLen, effectiveLen;
- valdata.Get(keyLen);
- valdata.Get(effectiveLen);
- valdata.Get(key, keyLen);
- valdata.Get(plain, RC2Encryption::BLOCKSIZE);
- valdata.Get(cipher, RC2Encryption::BLOCKSIZE);
+ (void)valdata.Get(keyLen);
+ (void)valdata.Get(effectiveLen);
+ (void)valdata.Get(key, keyLen);
+ (void)valdata.Get(plain, RC2Encryption::BLOCKSIZE);
+ (void)valdata.Get(cipher, RC2Encryption::BLOCKSIZE);
member_ptr<BlockTransformation> transE(new RC2Encryption(key, keyLen, effectiveLen));
transE->ProcessBlock(plain, out);