public class MessageBlock extends org.cryptimeleon.math.structures.cartesian.Vector<PlainText> implements PlainText
| Constructor and Description |
|---|
MessageBlock(java.util.List<? extends PlainText> messages) |
MessageBlock(PlainText... messages) |
MessageBlock(org.cryptimeleon.math.serialization.Representation repr,
java.util.function.Function<org.cryptimeleon.math.serialization.Representation,? extends PlainText> messageRestorer)
Reconstructs the message block from its representation.
|
MessageBlock(org.cryptimeleon.math.structures.cartesian.Vector<? extends PlainText> messages) |
| Modifier and Type | Method and Description |
|---|---|
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
java.lang.String |
toString() |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
append, concatenate, equals, forEach, forEach, fromStreamPlain, fromStreamPlain, generatePlain, generatePlain, generatePlain, generatePlain, get, hashCode, iterate, iterate, length, map, map, map, map, of, of, of, pad, prepend, reduce, reduce, replace, stream, toList, truncate, zip, zip, zipReduce, zipReducepublic MessageBlock(PlainText... messages)
public MessageBlock(java.util.List<? extends PlainText> messages)
public MessageBlock(org.cryptimeleon.math.structures.cartesian.Vector<? extends PlainText> messages)
public MessageBlock(org.cryptimeleon.math.serialization.Representation repr,
java.util.function.Function<org.cryptimeleon.math.serialization.Representation,? extends PlainText> messageRestorer)
Caller needs to supply a function messageRestorer that is used to
restore each message in this block (e.g., repr -> new RingElementPlainText(myRing.getElement(repr)).
repr - the representation to restore the message block frommessageRestorer - a function that can restore the message representations contained in the message
block representationpublic org.cryptimeleon.math.serialization.Representation getRepresentation()
getRepresentation in interface org.cryptimeleon.math.serialization.Representablepublic java.lang.String toString()
toString in class org.cryptimeleon.math.structures.cartesian.Vector<PlainText>public org.cryptimeleon.math.hash.ByteAccumulator updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator)
updateAccumulator in interface org.cryptimeleon.math.hash.UniqueByteRepresentable