net.i2p.crypto
Class Hash512

java.lang.Object
  extended by net.i2p.data.DataStructureImpl
      extended by net.i2p.data.SimpleDataStructure
          extended by net.i2p.crypto.Hash512
All Implemented Interfaces:
Serializable, DataStructure

public class Hash512
extends SimpleDataStructure

64 byte hash

Since:
0.9.8
See Also:
Serialized Form

Field Summary
static int HASH_LENGTH
           
 
Fields inherited from class net.i2p.data.SimpleDataStructure
_data
 
Constructor Summary
Hash512()
           
Hash512(byte[] data)
           
 
Method Summary
 int length()
          The legal length of the byte array in this data structure
 
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytes
 
Methods inherited from class net.i2p.data.DataStructureImpl
read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HASH_LENGTH

public static final int HASH_LENGTH
See Also:
Constant Field Values
Constructor Detail

Hash512

public Hash512()

Hash512

public Hash512(byte[] data)
Throws:
IllegalArgumentException - if data is not correct length (null is ok)
Method Detail

length

public int length()
Description copied from class: SimpleDataStructure
The legal length of the byte array in this data structure

Specified by:
length in class SimpleDataStructure