|
Public Types |
enum | keyMode {
kmNONE = 0,
kmENCRYPT = 0x2,
kmDECRYPT = 0x4,
kmOFB = kmENCRYPT,
kmBOTH = kmENCRYPT | kmDECRYPT
} |
Public Methods |
virtual void | setKey (const dsCypher_byte_t *p_key, dsCypher_word32_t p_keyLen, keyMode km=dsCypher::kmBOTH) dsCypher_SECTION |
virtual void | encryptBlock (const dsCypher_word32_t *inBlock, dsCypher_word32_t *outBlock) dsCypher_SECTION |
virtual void | decryptBlock (const dsCypher_word32_t *inBlock, dsCypher_word32_t *outBlock) dsCypher_SECTION |
| dsRC6 (const dsCypher_byte_t *p_key, dsCypher_word32_t p_keyLen) |
| dsRC6 () |
virtual void | ecbEncrypt (dsCypher_byte_t *p_dest, const dsCypher_byte_t *p_src, dsCypher_word32_t p_srcLen) |
virtual void | ecbDecrypt (dsCypher_byte_t *p_dest, const dsCypher_byte_t *p_src, dsCypher_word32_t p_srcLen) |
virtual void | cbcEncrypt (dsCypher_byte_t *p_dest, const dsCypher_byte_t *p_src, dsCypher_word32_t p_srcLen, const dsCypher_byte_t *iv) |
virtual void | cbcDecrypt (dsCypher_byte_t *p_dest, const dsCypher_byte_t *p_src, dsCypher_word32_t p_srcLen, const dsCypher_byte_t *iv) |
virtual void | ofbXOR (dsCypher_byte_t *p_dest, const dsCypher_byte_t *p_src, dsCypher_word32_t p_srcLen, const dsCypher_byte_t *iv) |
virtual void | ofbXOR (std::ostream &p_dest, std::istream &p_src, const dsCypher_byte_t *ivec) |
bool | ready () |
Public Attributes |
keyMode | _active_key_mode |
Protected Methods |
void | memSet (dsCypher_byte_t *ptr, dsCypher_byte_t pattern, dsCypher_word32_t size) |
void | memCopy (dsCypher_byte_t *dest, const dsCypher_byte_t *src, dsCypher_word32_t size) |
dsCypher_word32_t | n2l (const dsCypher_byte_t *c) |
dsCypher_word32_t | n2le (const dsCypher_byte_t *c) |
void | l2n (dsCypher_word32_t l, dsCypher_byte_t *c) |
void | l2ne (dsCypher_word32_t l, dsCypher_byte_t *c) |
void | n_n2l (dsCypher_word32_t *dest, const dsCypher_byte_t *src, dsCypher_word32_t srcLen) |
void | n_n2le (dsCypher_word32_t *dest, const dsCypher_byte_t *src, dsCypher_word32_t srcLen) |
void | n_l2n (dsCypher_byte_t *dest, const dsCypher_word32_t *src, dsCypher_word32_t srcLen) |
void | n_l2ne (dsCypher_byte_t *dest, const dsCypher_word32_t *src, dsCypher_word32_t srcLen) |
void | n_xor (dsCypher_word32_t *dest, const dsCypher_word32_t *src, dsCypher_word32_t size) |
dsCypher_word32_t | rotl (dsCypher_word32_t x, dsCypher_word32_t n) |
dsCypher_word32_t | rotr (dsCypher_word32_t x, dsCypher_word32_t n) |
Protected Attributes |
dsCypher_word32_t | _block_size |
This code based on: B R Gladman implementation for AES submition.
Copyright in this code is held by Dr B. R. Gladman but free direct or derivative use is permitted subject to acknowledgement of its origin. Dr B. R. Gladman . 25th January 2000.