public class LongAesPseudoRandomFunction extends java.lang.Object implements PseudorandomFunction
This is basically a wrapper around AesPseudorandomFunction.
| Constructor and Description |
|---|
LongAesPseudoRandomFunction(AesPseudorandomFunction aesPseudorandomFunction,
int k)
Instantiates the PRF with an AES instance and desired factor.
|
LongAesPseudoRandomFunction(Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ByteArrayImpl |
evaluate(PrfKey k,
PrfPreimage x)
Maps a preimage x to its image using key k.
|
ByteArrayImpl |
generateKey()
Generates a key k for use with this PRF.
|
int |
getKeyLengthBytes() |
int |
getPreimageLengthBytes() |
Representation |
getRepresentation()
The representation of this object.
|
int |
hashCode() |
ByteArrayImpl |
restoreImage(Representation repr)
Restores an image y from its representation.
|
ByteArrayImpl |
restoreKey(Representation repr)
Restores a key k from its representation.
|
ByteArrayImpl |
restorePreimage(Representation repr)
Restores a preimage x from its representation.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitrestoreFromRepresentationpublic LongAesPseudoRandomFunction(AesPseudorandomFunction aesPseudorandomFunction, int k)
k - factor by which output and key size of AES is increasedaesPseudorandomFunction - AES instance to use k timespublic LongAesPseudoRandomFunction(Representation repr)
public ByteArrayImpl generateKey()
PseudorandomFunctiongenerateKey in interface PseudorandomFunctionpublic ByteArrayImpl evaluate(PrfKey k, PrfPreimage x)
PseudorandomFunctionevaluate in interface PseudorandomFunctionpublic ByteArrayImpl restoreKey(Representation repr)
PseudorandomFunctionrestoreKey in interface PseudorandomFunctionpublic ByteArrayImpl restorePreimage(Representation repr)
PseudorandomFunctionrestorePreimage in interface PseudorandomFunctionpublic ByteArrayImpl restoreImage(Representation repr)
PseudorandomFunctionrestoreImage in interface PseudorandomFunctionpublic Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic int getPreimageLengthBytes()
public int getKeyLengthBytes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object