Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 StringgetAlgorithm () 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)

Detailed Description


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

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)
 

bytearray* beecrypt::crypto::Cipher::doFinal const byte input,
size_t  inputOffset,
size_t  inputLength
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 bytearray input  )  throw (IllegalStateException, IllegalBlockSizeException, BadPaddingException)
 

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

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

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

static Cipher* beecrypt::crypto::Cipher::getInstance const String transformation,
const Provider provider
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  )  throw (NoSuchAlgorithmException, NoSuchPaddingException) [static]
 

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

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

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]
 

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

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

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

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

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,
SecureRandom *  random = 0
throw (InvalidKeyException)
 

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

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

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

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


Member Data Documentation

const int beecrypt::crypto::Cipher::DECRYPT_MODE [static]
 

const int beecrypt::crypto::Cipher::ENCRYPT_MODE [static]
 

const int beecrypt::crypto::Cipher::UNWRAP_MODE [static]
 

const int beecrypt::crypto::Cipher::WRAP_MODE [static]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 20 08:15:55 2005 for BeeCrypt by  doxygen 1.4.0