public class Makwa.Output
extends java.lang.Object
A Makwa.Output
instance represents a Makwa output,
with its parameters. This class handles encoding to and
decoding from the string representation described in the
Makwa specification, section A.4.
Use Makwa.decodeOutput(java.lang.String)
to create instances of this
class.
Modifier and Type | Method and Description |
---|---|
int |
getPostHashLength()
Get the post-hashing length; 0 is returned if no
post-hashing was applied.
|
boolean |
getPreHash()
Get the pre-hashing flag.
|
byte[] |
getSalt()
Get the salt value.
|
byte[] |
getTau()
Get the binary output.
|
java.math.BigInteger |
getTauInt()
Get the primary output as a big integer.
|
int |
getWorkFactor()
Get the work factor.
|
java.lang.String |
toString()
Re-encode this Makwa output as a string using the
specified format.
|
public byte[] getSalt()
public boolean getPreHash()
true
if pre-hashing was appliedpublic int getPostHashLength()
public int getWorkFactor()
public byte[] getTau()
public java.math.BigInteger getTauInt()
null
. If
an integer is returned, then it has been verified to
be in the correct range (1 to n-1, where n is the modulus).null
public java.lang.String toString()
toString
in class java.lang.Object
Object