Representation of a byte in AES. More...
Public Member Functions | |
AESByte (char val=0x00) | |
AESByte (int val) | |
AESByte (double_t val) | |
uc_t | val () const |
AESByte & | operator+= (const AESByte &b) |
AESByte & | operator*= (const AESByte &b) |
AESByte & | operator-= (const AESByte &b) |
AESByte & | operator/= (const AESByte &b) |
Friends | |
AESByte | abs (const AESByte &b) |
AESByte | sqrt (const AESByte &b) |
AESByte | operator+ (AESByte b1, const AESByte &b2) |
AESByte | operator- (AESByte b1, const AESByte &b2) |
AESByte | operator- (AESByte b) |
AESByte | operator* (AESByte b1, const AESByte &b2) |
AESByte | operator/ (AESByte b1, const AESByte &b2) |
bool | operator== (const AESByte &b1, const AESByte &b2) |
bool | operator!= (const AESByte &b1, const AESByte &b2) |
bool | operator> (const AESByte &b1, const AESByte &b2) |
bool | operator< (const AESByte &b1, const AESByte &b2) |
bool | operator>= (const AESByte &b1, const AESByte &b2) |
bool | operator<= (const AESByte &b1, const AESByte &b2) |
std::ostream & | operator<< (std::ostream &os, const AESByte &b) |
Representation of a byte in AES.
Byte in AES algorithm can be seen as elements of Gallois's finite field \( GF(2^8) \).
This class provides algebraical operation on the specific field. and interfacing with integers primitive types. For more details go to https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.197.pdf.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |