Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.provider.mac
Class Null  view Null download Null.java

java.lang.Object
  extended byjavax.crypto.MacSpi
      extended bycryptix.jce.provider.mac.Null

public final class Null
extends javax.crypto.MacSpi

Null MAC, a MAC with length 0.

Version:
$Revision: 1.5 $

Constructor Summary
Null()
           
 
Method Summary
 java.lang.Object clone()
          Clone this MAC object.
protected  byte[] engineDoFinal()
          Finalize the computation of this MAC and return the result as a byte array.
protected  int engineGetMacLength()
          Return the length of this Mac: 0
protected  void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params)
          Initialize (or re-initialize) this instance.
protected  void engineReset()
          Reset this instance.
protected  void engineUpdate(byte input)
          Update this MAC with a single byte.
protected  void engineUpdate(byte[] input, int offset, int len)
          Update this MAC with a portion of a byte array.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Null

public Null()
Method Detail

engineGetMacLength

protected final int engineGetMacLength()
Return the length of this Mac: 0


engineInit

protected final void engineInit(java.security.Key key,
                                java.security.spec.AlgorithmParameterSpec params)
                         throws java.security.InvalidKeyException,
                                java.security.InvalidAlgorithmParameterException
Description copied from class: javax.crypto.MacSpi
Initialize (or re-initialize) this instance.


engineUpdate

protected final void engineUpdate(byte input)
Description copied from class: javax.crypto.MacSpi
Update this MAC with a single byte.


engineUpdate

protected final void engineUpdate(byte[] input,
                                  int offset,
                                  int len)
Description copied from class: javax.crypto.MacSpi
Update this MAC with a portion of a byte array.


engineDoFinal

protected final byte[] engineDoFinal()
Description copied from class: javax.crypto.MacSpi
Finalize the computation of this MAC and return the result as a byte array.


engineReset

protected final void engineReset()
Description copied from class: javax.crypto.MacSpi
Reset this instance. After this method succeeds, the state of this instance should be the same as it was before any data was input (possibly after a call to #init(java.security.Key,java.security.spec.AlgorithmParameterSpec), possibly not).


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone this MAC object.