| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.crypto.CipherSpi
tribble.crypto.CipherSpi
tribble.crypto.BlockCipherSpi
tribble.crypto.NullCipherSpi
Null block cipher. Implements a null cryptographic cipher which does not do any actual encrypting of data.
	Copyright ©2005 by David R. Tribble, all rights reserved.
	
	Permission is granted to freely use and distribute this source code
	provided that the original copyright and authorship notices remain
	intact.
| Field Summary | 
| Fields inherited from class tribble.crypto.BlockCipherSpi | 
SERIES | 
| Fields inherited from class tribble.crypto.CipherSpi | 
DECRYPT_MODE, ENCRYPT_MODE, MODE_BC, MODE_CBC, MODE_CFB, MODE_CFB8, MODE_CTR, MODE_CTR8, MODE_ECB, MODE_OFB, MODE_OFB8, MODE_PBC, MODE_PCBC, MODE_PFB, MODE_PFB8, PADDING_CTS, PADDING_NONE, PADDING_PKCS5, PADDING_ZEROS | 
| Constructor Summary | |
NullCipherSpi()
Default constructor.  | 
|
| Method Summary | |
protected  void | 
blockDecrypt(byte[] in,
             int inOff,
             byte[] out,
             int outOff)
Decrypt exactly one block of plaintext.  | 
protected  void | 
blockEncrypt(byte[] in,
             int inOff,
             byte[] out,
             int outOff)
Encrypt exactly one block of plaintext.  | 
protected  void | 
initialize(byte[] key,
           boolean decrypt)
Initialize this cipher.  | 
static void | 
main(java.lang.String[] args)
Test driver.  | 
| Methods inherited from class tribble.crypto.BlockCipherSpi | 
engineClear, engineDoFinal, engineGetKeySize, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineWrap | 
| Methods inherited from class tribble.crypto.CipherSpi | 
engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineSetIV, engineUpdate, finalize | 
| Methods inherited from class java.lang.Object | 
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public NullCipherSpi()
              throws java.security.NoSuchAlgorithmException,
                     javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException - Never thrown.
javax.crypto.NoSuchPaddingException - Never thrown.| Method Detail | 
public static final void main(java.lang.String[] args)
                       throws java.lang.Exception
args - Command line arguments.
java.lang.Exception - Thrown if an error occurs in the encryption engine.
protected void initialize(byte[] key,
                          boolean decrypt)
                   throws java.security.InvalidKeyException
key - The symmetric (secret) key for this cipher.decrypt - If true, this indicates that this cipher is to be initialized for
 decrypting, otherwise it is to be initialized for encrypting.
java.security.InvalidKeyException
protected void blockEncrypt(byte[] in,
                            int inOff,
                            byte[] out,
                            int outOff)
in - Array containing a single block of plaintext bytes to encrypt.
 The length of the block is exactly equal to the cipher block size.inOff - Index of the first byte of the plaintext block within array in to
 encrypt.out - Array that will be filled with the encrypted ciphertext block.
 The length of the block is exactly equal to the cipher block size.outOff - Index of the first byte of array out to fill with the encrypted
 ciphertext block.blockDecrypt(), 
initialize()
protected void blockDecrypt(byte[] in,
                            int inOff,
                            byte[] out,
                            int outOff)
in - Array containing a single block of ciphertext bytes to decrypt.
 The length of the block is exactly equal to the cipher block size.inOff - Index of the first byte of the ciphertext block within array in
 to decrypt.out - Array that will be filled with the decrypted plaintext block.
 The length of the block is exactly equal to the cipher block size.outOff - Index of the first byte of array out to fill with the decrypted
 plaintext block.blockEncrypt(), 
initialize()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||