Package net.i2p.crypto
Class Hash384
java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.crypto.Hash384
- All Implemented Interfaces:
DataStructure
public class Hash384 extends SimpleDataStructure
48 byte hash
- Since:
- 0.9.8
-
Field Summary
Fields Modifier and Type Field Description static int
HASH_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
length()
The legal length of the byte array in this data structureMethods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, read, readBytes, setData, toBase64, toByteArray, toString, writeBytes
-
Field Details
-
HASH_LENGTH
public static final int HASH_LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
Hash384
public Hash384() -
Hash384
public Hash384(byte[] data)- Throws:
IllegalArgumentException
- if data is not correct length (null is ok)
-
-
Method Details
-
length
public int length()Description copied from class:SimpleDataStructure
The legal length of the byte array in this data structure- Specified by:
length
in classSimpleDataStructure
-