Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


oracle.security.crypto.core
Class MD2

java.lang.Object
  extended by oracle.security.crypto.core.MessageDigest
      extended by oracle.security.crypto.core.MD2

All Implemented Interfaces:
java.lang.Cloneable

public final class MD2
extends MessageDigest

The MD2 message digest algorithm, as defined in RFC 1319.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.crypto.core.MessageDigest
MessageDigest.MDState

 

Field Summary

 

Fields inherited from class oracle.security.crypto.core.MessageDigest
algID

 

Constructor Summary
MD2()
          Empty constructor.

 

Method Summary
 java.lang.String algName()
          Returns the algorithm name of this message digest.
 int blockSize()
          Returns the blocksize of this instance.
 java.lang.Object clone()
          Returns a clone of this message digest object.
 void computeCurrent()
          Completes the hash computation, performing any necessary operations such as padding.
 AlgorithmIdentifier getAlgID()
          Returns the algorithm identifier of this object.
 byte[] getDigestBits()
          Returns a copy of the current digest bytes.
 int getDigestLength()
          Returns the length in bytes of the message digest.
protected  MessageDigest.MDState getState()
          Gets the state of this MessageDigest instance.
 void init()
          Resets this message digest object to its initial state.
 boolean isValid()
          Returns true if this MD2 is in a valid state and its digest bits are usable; otherwise returns false.
protected  void setState(MessageDigest.MDState state)
          Sets the state of this MessageDigest instance.
 void update(byte b)
          Adds the specifed byte to the data being digested.

 

Methods inherited from class oracle.security.crypto.core.MessageDigest
computeDigest, computeDigest, getInstance, isEqual, setAlgID, toString, update, update, update, update, update, update, update, update, update, update, update, update, updateASCII

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

MD2

public MD2()
Empty constructor.

Method Detail

init

public void init()
Description copied from class: MessageDigest
Resets this message digest object to its initial state.
Specified by:
init in class MessageDigest

getAlgID

public AlgorithmIdentifier getAlgID()
Description copied from class: MessageDigest
Returns the algorithm identifier of this object.
Specified by:
getAlgID in class MessageDigest
Returns:
An AlgorithIdentifier object representing the hash algorithm of this MessageDigest instance.

blockSize

public int blockSize()
Description copied from class: MessageDigest
Returns the blocksize of this instance.
Specified by:
blockSize in class MessageDigest

getDigestLength

public int getDigestLength()
Returns the length in bytes of the message digest.
Specified by:
getDigestLength in class MessageDigest

getDigestBits

public byte[] getDigestBits()
Returns a copy of the current digest bytes.
Overrides:
getDigestBits in class MessageDigest

isValid

public boolean isValid()
Returns true if this MD2 is in a valid state and its digest bits are usable; otherwise returns false.
Overrides:
isValid in class MessageDigest

update

public void update(byte b)
Description copied from class: MessageDigest
Adds the specifed byte to the data being digested.
Specified by:
update in class MessageDigest

computeCurrent

public void computeCurrent()
Completes the hash computation, performing any necessary operations such as padding. The final result of the hash is stored in digestBits.
Specified by:
computeCurrent in class MessageDigest

algName

public java.lang.String algName()
Returns the algorithm name of this message digest.
Specified by:
algName in class MessageDigest
Returns:
"MD2"

clone

public java.lang.Object clone()
Returns a clone of this message digest object.
Specified by:
clone in class MessageDigest

getState

protected MessageDigest.MDState getState()
Description copied from class: MessageDigest
Gets the state of this MessageDigest instance.
Specified by:
getState in class MessageDigest

setState

protected void setState(MessageDigest.MDState state)
Description copied from class: MessageDigest
Sets the state of this MessageDigest instance.
Specified by:
setState in class MessageDigest

Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


Copyright © 2005, 2013, Oracle. All rights reserved.