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

Quick Search    Search Deep

gnu.javax.crypto.jce.mac
Class HMacSHA512Spi  view HMacSHA512Spi download HMacSHA512Spi.java

java.lang.Object
  extended byjavax.crypto.MacSpi
      extended bygnu.javax.crypto.jce.mac.MacAdapter
          extended bygnu.javax.crypto.jce.mac.HMacSHA512Spi
All Implemented Interfaces:
java.lang.Cloneable

public class HMacSHA512Spi
extends MacAdapter

The implementation of the HMAC-SHA-512 Service Provider Interface (SPI) adapter.


Field Summary
protected  java.util.Map attributes
          Our MAC attributes.
protected  gnu.javax.crypto.mac.IMac mac
          Our MAC instance.
 
Constructor Summary
HMacSHA512Spi()
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this instance if cloning is supported.
protected  byte[] engineDoFinal()
          Finalize the computation of this MAC and return the result as a byte array.
protected  int engineGetMacLength()
          Return the total length, in bytes, of the computed MAC (the length of the byte array returned by #doFinal().
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 b)
          Update this MAC with a single byte.
protected  void engineUpdate(byte[] in, int off, 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
 

Field Detail

mac

protected gnu.javax.crypto.mac.IMac mac
Our MAC instance.


attributes

protected java.util.Map attributes
Our MAC attributes.

Constructor Detail

HMacSHA512Spi

public HMacSHA512Spi()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: javax.crypto.MacSpi
Returns a clone of this instance if cloning is supported.


engineDoFinal

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


engineGetMacLength

protected int engineGetMacLength()
Description copied from class: javax.crypto.MacSpi
Return the total length, in bytes, of the computed MAC (the length of the byte array returned by #doFinal().


engineInit

protected 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.


engineReset

protected 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).


engineUpdate

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


engineUpdate

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