diff options
author | lloyd <[email protected]> | 2013-08-29 22:10:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-08-29 22:10:15 +0000 |
commit | 685dba405865a2dd0dab7460bee07b41765390da (patch) | |
tree | 8ee1873a0b50ef19e7be166aa6159566108f0b01 | |
parent | 7184de2b5dd729bcbf5a6e53feb872cc3c4a1452 (diff) |
Make OCB tests quiet
-rw-r--r-- | checks/ocb.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/checks/ocb.cpp b/checks/ocb.cpp index 5cf6d9296..eb4224d32 100644 --- a/checks/ocb.cpp +++ b/checks/ocb.cpp @@ -119,8 +119,6 @@ void test_ocb_long(size_t taglen, const std::string &expected) if(cipher_hex != expected) std::cout << "OCB AES-128 long test mistmatch " << cipher_hex << " != " << expected << "\n"; - else - std::cout << "OCB AES-128 long test OK\n"; } void test_ocb() @@ -140,15 +138,12 @@ void test_ocb() if(ctext_hex != expected) std::cout << "OCB/AES-128 encrypt test failure\n" << ctext_hex << " !=\n" << expected << "\n"; - else - std::cout << "OCB/AES-128 encrypt OK\n"; try { std::vector<byte> dec = ocb_decrypt(key, nonce, ctext, ad); - if(dec == pt) { std::cout << "OCB decrypts OK\n"; } - else { std::cout << "OCB fails to decrypt\n"; } + if(dec != pt) std::cout << "OCB fails to decrypt\n"; } catch(std::exception& e) { |