KeccakTools
|
#include <padding.h>
Public Member Functions | |
MessageBlock () | |
void | appendBit (int bitValue) |
void | appendByte (UINT8 byteValue) |
void | appendZeroes (unsigned int count) |
unsigned int | size () const |
const vector< UINT8 > & | get () const |
Class representing a message block whose size is not necessarily a multiple of 8 bits. The block can contain any number of bits.
MessageBlock::MessageBlock | ( | ) |
The constructor.
void MessageBlock::appendBit | ( | int | bitValue | ) |
Method to append one bit to the block.
bitValue | The value (0 or 1) of the bit to append. |
void MessageBlock::appendByte | ( | UINT8 | byteValue | ) |
Method to append one byte to the block.
byteValue | The value (0x00…0xFF) of the byte to append. |
void MessageBlock::appendZeroes | ( | unsigned int | count | ) |
Method to append a series of bits with value '0'.
count | The number of zeroes to append. |
const vector< UINT8 > & MessageBlock::get | ( | ) | const |
Method that returns a reference to the block.
unsigned int MessageBlock::size | ( | ) | const |
Method that returns the number of bits in the block.