h52952 s 00004/00228/00057 d D 1.2 97/12/09 15:24:51 luehe 3 1 c rm ,* e s 00000/00000/00000 d R 1.2 97/10/09 09:58:16 Codemgr 2 1 c SunPro Code Manager data about conflicts, renames, etc... c Name history : 1 0 security/JCE1.2/earlyaccess/javax.crypto.NullCipher.html e s 00285/00000/00000 d D 1.1 97/10/09 09:58:15 luehe 1 0 c date and time created 97/10/09 09:58:15 by luehe e u U f e 0 t T I 1 D 3 E 3 I 3 E 3 Class javax.crypto.NullCipher
D 3
All Packages  Class Hierarchy  This Package  Previous  Next  Index
E 3 I 3 All Packages Class Hierarchy This Package Previous Next Index E 3

Class javax.crypto.NullCipher

java.lang.Object
   |
   +----javax.crypto.Cipher
           |
           +----javax.crypto.NullCipher

public class NullCipher
extends Cipher
D 3 The NullCipher class is a crypto provider class that provides an E 3 I 3 The NullCipher class is a class that provides an E 3 "identity cipher" -- one that does not tranform the plaintext. As a consequence, the ciphertext is identical to the plaintext. All initialization methods do nothing, while the blocksize is set to 1 byte.


Constructor Index

 o NullCipher()
D 3

Method Index

 o engineDoFinal(byte[], int, int)
SPI: Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
 o engineDoFinal(byte[], int, int, byte[], int)
SPI: Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
 o engineGetBlockSize()
SPI: Returns the block size (in bytes).
 o engineGetIV()
SPI: Returns the initialization vector (IV) in a new buffer.
 o engineGetOutputSize(int)
SPI: Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes).
 o engineInit(int, Key, AlgorithmParameterSpec, SecureRandom)
SPI: Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
 o engineInit(int, Key, SecureRandom)
SPI: Initializes this cipher with a key and a source of randomness.
 o engineSetMode(String)
SPI: Sets the mode of this cipher.
 o engineSetPadding(String)
SPI: Sets the padding mechanism of this cipher.
 o engineUpdate(byte[], int, int)
SPI: Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
 o engineUpdate(byte[], int, int, byte[], int)
SPI: Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
E 3

Constructors

 o NullCipher
 public NullCipher()
D 3

Methods

 o engineSetMode
 public void engineSetMode(String mode)
SPI: Sets the mode of this cipher.

Overrides:
engineSetMode in class Cipher
 o engineSetPadding
 public void engineSetPadding(String padding)
SPI: Sets the padding mechanism of this cipher.

Overrides:
engineSetPadding in class Cipher
 o engineGetBlockSize
 protected int engineGetBlockSize()
SPI: Returns the block size (in bytes).

Overrides:
engineGetBlockSize in class Cipher
 o engineGetOutputSize
 protected int engineGetOutputSize(int inputLen)
SPI: Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes).

Overrides:
engineGetOutputSize in class Cipher
 o engineGetIV
 protected byte[] engineGetIV()
SPI: Returns the initialization vector (IV) in a new buffer.

Overrides:
engineGetIV in class Cipher
 o engineInit
 protected void engineInit(int mode,
                           Key key,
                           SecureRandom random)
SPI: Initializes this cipher with a key and a source of randomness.

Overrides:
engineInit in class Cipher
 o engineInit
 protected void engineInit(int mode,
                           Key key,
                           AlgorithmParameterSpec params,
                           SecureRandom random)
SPI: Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.

Overrides:
engineInit in class Cipher
 o engineUpdate
 protected byte[] engineUpdate(byte input[],
                               int inputOffset,
                               int inputLen)
SPI: Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

Overrides:
engineUpdate in class Cipher
 o engineUpdate
 protected int engineUpdate(byte input[],
                            int inputOffset,
                            int inputLen,
                            byte output[],
                            int outputOffset)
SPI: Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

Overrides:
engineUpdate in class Cipher
 o engineDoFinal
 protected byte[] engineDoFinal(byte input[],
                                int inputOffset,
                                int inputLen)
SPI: Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Overrides:
engineDoFinal in class Cipher
 o engineDoFinal
 protected int engineDoFinal(byte input[],
                             int inputOffset,
                             int inputLen,
                             byte output[],
                             int outputOffset)
SPI: Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Overrides:
engineDoFinal in class Cipher
E 3
D 3
All Packages  Class Hierarchy  This Package  Previous  Next  Index
E 3 I 3 All Packages Class Hierarchy This Package Previous Next Index E 3 E 1