scclib
Stable Cloud Computing C++ Library
Typedefs | Functions | Variables
cipher.cc File Reference

Test file for Symmetric block ciphers. More...

#include <crypto/cipher.h>
#include <gtest/gtest.h>
#include <string>
#include <fstream>
#include <map>
#include <vector>
#include <encode/hex.h>
Include dependency graph for cipher.cc:

Go to the source code of this file.

Typedefs

using CharVec = std::vector< char >
 
using mappair = std::pair< const string, Cipher >
 

Functions

 TEST_F (Ciphertest, authdata_only)
 
 TEST_F (Ciphertest, enc_reset)
 
 TEST_F (Ciphertest, enc_reset_adddata)
 
 TEST_F (Ciphertest, enc_dec)
 
 TEST_F (Ciphertest, enc_dec_adddata)
 
 TEST_F (Ciphertest, enc_dec_samebuf)
 

Variables

string key16 = "use a 16 b key!!"
 
string key24 = "use a 24 b key!!!!!!!!!!"
 
string key32 = "use a 32 b key!!!!!!!!!!!!!!!!!!"
 
string nonce = "the nonce!!!"
 
string adddata = "this is the additional data"
 
string plain
 

Detailed Description

Test file for Symmetric block ciphers.

Definition in file cipher.cc.

Variable Documentation

◆ plain

string plain
Initial value:
= "\
To be, or not to be, that is the question: \n\
Whether 'tis nobler in the mind to suffer \n\
The slings and arrows of outrageous fortune, \n\
Or to take Arms against a Sea of troubles, \n\
And by opposing end them: to die, to sleep; \n\
No more; and by a sleep, to say we end \n\
The heart-ache, and the thousand natural shocks \n\
That Flesh is heir to? 'Tis a consummation \n\
Devoutly to be wished. To die, to sleep, \n\
perchance to Dream; aye, there's the rub..."

Definition at line 66 of file cipher.cc.