public enum HashFunction extends java.lang.Enum<HashFunction>
Enum Constant and Description |
---|
Keccak25
Use proprietary NXT implementation of Keccak with 25 rounds (code 25)
|
RIPEMD160 |
RIPEMD160_SHA256 |
SCRYPT
Use Java implementation of Scrypt
|
SHA256
Use Java implementation of SHA256 (code 2)
|
SHA3
Use Bouncy Castle implementation of SHA3 (code 3).
|
Modifier and Type | Method and Description |
---|---|
static HashFunction |
getHashFunction(byte id) |
byte |
getId() |
abstract byte[] |
hash(byte[] input) |
static HashFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HashFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashFunction SHA256
public static final HashFunction SHA3
public static final HashFunction SCRYPT
public static final HashFunction Keccak25
public static final HashFunction RIPEMD160
public static final HashFunction RIPEMD160_SHA256
public static HashFunction[] values()
for (HashFunction c : HashFunction.values()) System.out.println(c);
public static HashFunction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HashFunction getHashFunction(byte id)
public byte getId()
public abstract byte[] hash(byte[] input)