wxPdfDocument  1.4.0
Library for generating PDF documents from wxWidgets applications
Loading...
Searching...
No Matches
wxPdfRijndael Class Reference

Class implementing the Rijndael cipher. (For internal use only). More...

#include <pdfrijndael.h>

Public Types

enum  Direction { Encrypt , Decrypt }
enum  Mode { ECB , CBC , CFB1 }
enum  KeyLength { Key16Bytes , Key24Bytes , Key32Bytes }

Public Member Functions

 wxPdfRijndael ()
 ~wxPdfRijndael ()
int init (Mode mode, Direction dir, const UINT8 *key, KeyLength keyLen, UINT8 *initVector=0)
int blockEncrypt (const UINT8 *input, int inputLen, UINT8 *outBuffer)
int padEncrypt (const UINT8 *input, int inputOctets, UINT8 *outBuffer)
int blockDecrypt (const UINT8 *input, int inputLen, UINT8 *outBuffer)
int padDecrypt (const UINT8 *input, int inputOctets, UINT8 *outBuffer)

Protected Types

enum  State { Valid , Invalid }

Protected Member Functions

void keySched (UINT8 key[_MAX_KEY_COLUMNS][4])
void keyEncToDec ()
void encrypt (const UINT8 a[16], UINT8 b[16])
void decrypt (const UINT8 a[16], UINT8 b[16])

Protected Attributes

State m_state
Mode m_mode
Direction m_direction
UINT8 m_initVector [MAX_IV_SIZE]
UINT32 m_uRounds
UINT8 m_expandedKey [_MAX_ROUNDS+1][4][4]

Detailed Description

Class implementing the Rijndael cipher. (For internal use only).

Member Enumeration Documentation

◆ Direction

Enumerator
Encrypt 
Decrypt 

◆ KeyLength

Enumerator
Key16Bytes 
Key24Bytes 
Key32Bytes 

◆ Mode

Enumerator
ECB 
CBC 
CFB1 

◆ State

enum wxPdfRijndael::State
protected
Enumerator
Valid 
Invalid 

Constructor & Destructor Documentation

◆ wxPdfRijndael()

wxPdfRijndael::wxPdfRijndael ( )

◆ ~wxPdfRijndael()

wxPdfRijndael::~wxPdfRijndael ( )

Member Function Documentation

◆ blockDecrypt()

int wxPdfRijndael::blockDecrypt ( const UINT8 * input,
int inputLen,
UINT8 * outBuffer )

◆ blockEncrypt()

int wxPdfRijndael::blockEncrypt ( const UINT8 * input,
int inputLen,
UINT8 * outBuffer )

◆ decrypt()

void wxPdfRijndael::decrypt ( const UINT8 a[16],
UINT8 b[16] )
protected

◆ encrypt()

void wxPdfRijndael::encrypt ( const UINT8 a[16],
UINT8 b[16] )
protected

◆ init()

int wxPdfRijndael::init ( Mode mode,
Direction dir,
const UINT8 * key,
KeyLength keyLen,
UINT8 * initVector = 0 )

◆ keyEncToDec()

void wxPdfRijndael::keyEncToDec ( )
protected

◆ keySched()

void wxPdfRijndael::keySched ( UINT8 key[_MAX_KEY_COLUMNS][4])
protected

◆ padDecrypt()

int wxPdfRijndael::padDecrypt ( const UINT8 * input,
int inputOctets,
UINT8 * outBuffer )

◆ padEncrypt()

int wxPdfRijndael::padEncrypt ( const UINT8 * input,
int inputOctets,
UINT8 * outBuffer )

Member Data Documentation

◆ m_direction

Direction wxPdfRijndael::m_direction
protected

◆ m_expandedKey

UINT8 wxPdfRijndael::m_expandedKey[_MAX_ROUNDS+1][4][4]
protected

◆ m_initVector

UINT8 wxPdfRijndael::m_initVector[MAX_IV_SIZE]
protected

◆ m_mode

Mode wxPdfRijndael::m_mode
protected

◆ m_state

State wxPdfRijndael::m_state
protected

◆ m_uRounds

UINT32 wxPdfRijndael::m_uRounds
protected

The documentation for this class was generated from the following file: