public class UniqueByteKeyMaterial extends java.lang.Object implements KeyMaterial
KeyMaterial based on a UniqueByteRepresentable.
It is extracted from a source of randomness with a well defined amount of min-entropy.| Constructor and Description |
|---|
UniqueByteKeyMaterial(org.cryptimeleon.math.hash.UniqueByteRepresentable e,
int minEntropyOfSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
org.cryptimeleon.math.hash.UniqueByteRepresentable |
getElement() |
int |
getMinEntropyInBit()
Returns the min entropy, of the key material's source X, i.e.
|
int |
hashCode() |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
public UniqueByteKeyMaterial(org.cryptimeleon.math.hash.UniqueByteRepresentable e,
int minEntropyOfSource)
public org.cryptimeleon.math.hash.UniqueByteRepresentable getElement()
public int getMinEntropyInBit()
KeyMaterialgetMinEntropyInBit in interface KeyMaterialpublic org.cryptimeleon.math.hash.ByteAccumulator updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator)
updateAccumulator in interface org.cryptimeleon.math.hash.UniqueByteRepresentablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object