MjSip Stack
v1.6

org.zoolu.tools
Class SimpleDigest

java.lang.Object
  |
  +--org.zoolu.tools.MessageDigest
        |
        +--org.zoolu.tools.SimpleDigest

public class SimpleDigest
extends MessageDigest

Simple and fast hash/message-digest algorithm.


Constructor Summary
SimpleDigest(int size)
          Constructor
SimpleDigest(int size, byte[] buffer)
          Constructor
SimpleDigest(int size, byte[] buffer, int offset, int len)
          Constructor
SimpleDigest(int size, java.lang.String str)
          Constructor
 
Method Summary
static byte[] digest(int size, byte[] buffer)
          Calculates the SimpleDigest.
static byte[] digest(int size, byte[] buffer, int offset, int len)
          Calculates the SimpleDigest.
static byte[] digest(int size, java.lang.String str)
          Calculates the SimpleDigest.
 byte[] doFinal()
          MessageDigest finalization.
 MessageDigest update(byte[] buffer, int offset, int len)
          MessageDigest block update operation.
 
Methods inherited from class org.zoolu.tools.MessageDigest
asHex, asHex, getDigest, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDigest

public SimpleDigest(int size)
Constructor

SimpleDigest

public SimpleDigest(int size,
                    byte[] buffer)
Constructor

SimpleDigest

public SimpleDigest(int size,
                    byte[] buffer,
                    int offset,
                    int len)
Constructor

SimpleDigest

public SimpleDigest(int size,
                    java.lang.String str)
Constructor
Method Detail

update

public MessageDigest update(byte[] buffer,
                            int offset,
                            int len)
MessageDigest block update operation. Continues a message-digest operation, processing another message block, and updating the context.
Overrides:
update in class MessageDigest

doFinal

public byte[] doFinal()
MessageDigest finalization. Ends a message-digest operation, writing the the message digest and zeroizing the context.
Overrides:
doFinal in class MessageDigest

digest

public static byte[] digest(int size,
                            byte[] buffer,
                            int offset,
                            int len)
Calculates the SimpleDigest.

digest

public static byte[] digest(int size,
                            byte[] buffer)
Calculates the SimpleDigest.

digest

public static byte[] digest(int size,
                            java.lang.String str)
Calculates the SimpleDigest.

MjSip Stack
v1.6