All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.modes.DecryptCFB

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.modes.DecryptMode
                   |
                   +----is.logi.crypto.modes.DecryptCFB

public class DecryptCFB
extends DecryptMode
Use this class to decrypt ciphertext generated by EncryptCFB.

Note that unlike ECB or CBC mode, CFB mode uses the same key to encrypt and decrypt, even with asymmetric ciphers.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
EncryptCFB

Constructor Index

 o DecryptCFB()
Create a new CFB-mode decrypt session with no key.
 o DecryptCFB(CipherKey)
Create a new CFB-mode decrypt session with the specified key.

Method Index

 o decrypt(byte[], int, int)
Send bytes to the DecryptCFB object for encryption.
 o getKey()
Return the key used for decryption.
 o setKey(CipherKey)
Set the key to use for decryption.

Constructors

 o DecryptCFB
 public DecryptCFB(CipherKey key)
Create a new CFB-mode decrypt session with the specified key.

 o DecryptCFB
 public DecryptCFB()
Create a new CFB-mode decrypt session with no key. No decryption can be performed until a call to setKey() has been made.

Methods

 o getKey
 public CipherKey getKey()
Return the key used for decryption.

Overrides:
getKey in class DecryptMode
 o setKey
 public void setKey(CipherKey key)
Set the key to use for decryption.

Overrides:
setKey in class DecryptMode
 o decrypt
 public synchronized byte[] decrypt(byte source[],
                                    int i,
                                    int length)
Send bytes to the DecryptCFB object for encryption.

Decrypt length bytes from source, starting at i and return the plaintext.

Overrides:
decrypt in class DecryptMode

All Packages  Class Hierarchy  This Package  Previous  Next  Index