beecrypt::crypto::Cipher Class Reference
[C++ classes mimicking javax.crypto]

#include <Cipher.h>

Inheritance diagram for beecrypt::crypto::Cipher:

Inheritance graph
[legend]
Collaboration diagram for beecrypt::crypto::Cipher:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Cipher ()
bytearraydoFinal () throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)
bytearraydoFinal (const bytearray &input) throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)
size_t doFinal (bytearray &output, size_t outputOffset) throw (IllegalStateException, IllegalBlockSizeException, ShortBufferException, BadPaddingException)
bytearraydoFinal (const byte *input, size_t inputOffset, size_t inputLength) throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)
size_t doFinal (const byte *input, size_t inputOffset, size_t inputLength, bytearray &output, size_t outputOffset=0) throw (IllegalStateException, IllegalBlockSizeException, ShortBufferException, BadPaddingException)
size_t getBlockSize () const throw ()
size_t getKeySize () const throw ()
size_t getOutputSize (size_t inputLength) throw ()
AlgorithmParameters * getParameters () throw ()
bytearraygetIV ()
void init (int opmode, const Certificate &certificate, SecureRandom *random=0) throw (InvalidKeyException)
void init (int opmode, const Key &key, SecureRandom *random=0) throw (InvalidKeyException)
void init (int opmode, const Key &key, AlgorithmParameters *params, SecureRandom *random=0) throw (InvalidKeyException, InvalidAlgorithmParameterException)
void init (int opmode, const Key &key, const AlgorithmParameterSpec &params, SecureRandom *random=0) throw (InvalidKeyException, InvalidAlgorithmParameterException)
bytearrayupdate (const bytearray &input) throw (IllegalStateException)
bytearrayupdate (const byte *input, size_t inputOffset, size_t inputLength) throw (IllegalStateException)
size_t update (const byte *input, size_t inputOffset, size_t inputLength, bytearray &output, size_t outputOffset=0) throw (IllegalStateException, ShortBufferException)
const String & getAlgorithm () const throw ()
const ProvidergetProvider () const throw ()

Static Public Member Functions

static CiphergetInstance (const String &transformation) throw (NoSuchAlgorithmException, NoSuchPaddingException)
static CiphergetInstance (const String &transformation, const String &provider) throw (NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException)
static CiphergetInstance (const String &transformation, const Provider &provider) throw (NoSuchAlgorithmException, NoSuchPaddingException)
static size_t getMaxAllowedKeyLength (const String &transformation) throw (NoSuchAlgorithmException)
static AlgorithmParameterSpec * getMaxAllowedParameterSpec (const String &transformation) throw (NoSuchAlgorithmException)

Static Public Attributes

static const int ENCRYPT_MODE
static const int DECRYPT_MODE
static const int WRAP_MODE
static const int UNWRAP_MODE

Protected Member Functions

 Cipher (CipherSpi *cipherSpi, const Provider *provider, const String &transformation)


Constructor & Destructor Documentation

beecrypt::crypto::Cipher::Cipher ( CipherSpi cipherSpi,
const Provider provider,
const String &  transformation 
) [protected]

virtual beecrypt::crypto::Cipher::~Cipher (  )  [virtual]


Member Function Documentation

static Cipher* beecrypt::crypto::Cipher::getInstance ( const String &  transformation  )  throw (NoSuchAlgorithmException, NoSuchPaddingException) [static]

static Cipher* beecrypt::crypto::Cipher::getInstance ( const String &  transformation,
const String &  provider 
) throw (NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException) [static]

static Cipher* beecrypt::crypto::Cipher::getInstance ( const String &  transformation,
const Provider provider 
) throw (NoSuchAlgorithmException, NoSuchPaddingException) [static]

static size_t beecrypt::crypto::Cipher::getMaxAllowedKeyLength ( const String &  transformation  )  throw (NoSuchAlgorithmException) [static]

static AlgorithmParameterSpec* beecrypt::crypto::Cipher::getMaxAllowedParameterSpec ( const String &  transformation  )  throw (NoSuchAlgorithmException) [static]

bytearray* beecrypt::crypto::Cipher::doFinal (  )  throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)

bytearray* beecrypt::crypto::Cipher::doFinal ( const bytearray input  )  throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)

size_t beecrypt::crypto::Cipher::doFinal ( bytearray output,
size_t  outputOffset 
) throw (IllegalStateException, IllegalBlockSizeException, ShortBufferException, BadPaddingException)

bytearray* beecrypt::crypto::Cipher::doFinal ( const byte input,
size_t  inputOffset,
size_t  inputLength 
) throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)

size_t beecrypt::crypto::Cipher::doFinal ( const byte input,
size_t  inputOffset,
size_t  inputLength,
bytearray output,
size_t  outputOffset = 0 
) throw (IllegalStateException, IllegalBlockSizeException, ShortBufferException, BadPaddingException)

size_t beecrypt::crypto::Cipher::getBlockSize (  )  const throw ()

size_t beecrypt::crypto::Cipher::getKeySize (  )  const throw ()

size_t beecrypt::crypto::Cipher::getOutputSize ( size_t  inputLength  )  throw ()

AlgorithmParameters* beecrypt::crypto::Cipher::getParameters (  )  throw ()

bytearray* beecrypt::crypto::Cipher::getIV (  ) 

void beecrypt::crypto::Cipher::init ( int  opmode,
const Certificate certificate,
SecureRandom *  random = 0 
) throw (InvalidKeyException)

void beecrypt::crypto::Cipher::init ( int  opmode,
const Key &  key,
SecureRandom *  random = 0 
) throw (InvalidKeyException)

void beecrypt::crypto::Cipher::init ( int  opmode,
const Key &  key,
AlgorithmParameters *  params,
SecureRandom *  random = 0 
) throw (InvalidKeyException, InvalidAlgorithmParameterException)

void beecrypt::crypto::Cipher::init ( int  opmode,
const Key &  key,
const AlgorithmParameterSpec &  params,
SecureRandom *  random = 0 
) throw (InvalidKeyException, InvalidAlgorithmParameterException)

bytearray* beecrypt::crypto::Cipher::update ( const bytearray input  )  throw (IllegalStateException)

bytearray* beecrypt::crypto::Cipher::update ( const byte input,
size_t  inputOffset,
size_t  inputLength 
) throw (IllegalStateException)

size_t beecrypt::crypto::Cipher::update ( const byte input,
size_t  inputOffset,
size_t  inputLength,
bytearray output,
size_t  outputOffset = 0 
) throw (IllegalStateException, ShortBufferException)

const String& beecrypt::crypto::Cipher::getAlgorithm (  )  const throw ()

const Provider& beecrypt::crypto::Cipher::getProvider (  )  const throw ()


Member Data Documentation


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

Generated on Tue May 20 13:51:31 2008 for BeeCrypt by  doxygen 1.5.5