public interface PseudorandomFunction extends StandaloneRepresentable, RepresentationRestorer
The way to use this interface is:
generateKey()
evaluate(PrfKey, PrfPreimage) using key k and input x to receive \(y = f_k(x)\)
| Modifier and Type | Method and Description |
|---|---|
PrfImage |
evaluate(PrfKey k,
PrfPreimage x)
Maps a preimage x to its image using key k.
|
PrfKey |
generateKey()
Generates a key k for use with this PRF.
|
default java.lang.Object |
restoreFromRepresentation(java.lang.reflect.Type type,
Representation repr)
Takes a representation and creates an object of the given type from it if the type is supported by the restorer.
|
PrfImage |
restoreImage(Representation repr)
Restores an image y from its representation.
|
PrfKey |
restoreKey(Representation repr)
Restores a key k from its representation.
|
PrfPreimage |
restorePreimage(Representation repr)
Restores a preimage x from its representation.
|
getRepresentationPrfKey generateKey()
PrfImage evaluate(PrfKey k, PrfPreimage x)
PrfKey restoreKey(Representation repr)
PrfPreimage restorePreimage(Representation repr)
PrfImage restoreImage(Representation repr)
default java.lang.Object restoreFromRepresentation(java.lang.reflect.Type type,
Representation repr)
RepresentationRestorerrestoreFromRepresentation in interface RepresentationRestorertype - tells the restorer which type the restored object should haverepr - the representation to restore the object from