public class ByteArrayImplementation extends org.cryptimeleon.math.misc.ByteArrayImpl implements PlainText, CipherText, DecryptionKey, EncryptionKey, SymmetricKey, KeyIndex, CiphertextIndex, org.cryptimeleon.math.hash.UniqueByteRepresentable
| Constructor and Description |
|---|
ByteArrayImplementation(byte[] bytes) |
ByteArrayImplementation(org.cryptimeleon.math.serialization.Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayImplementation |
append(org.cryptimeleon.math.misc.ByteArrayImpl a) |
static ByteArrayImplementation |
fromRandom(int numberBytes)
Creates a new
ByteArrayImplementation instance filled with numberBytes bytes of randomness |
ByteArrayImplementation |
substring(int firstIndex,
int length) |
ByteArrayImplementation |
xor(org.cryptimeleon.math.misc.ByteArrayImpl a) |
equals, getData, getRepresentation, hashCode, length, toString, updateAccumulatorclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic ByteArrayImplementation(byte[] bytes)
public ByteArrayImplementation(org.cryptimeleon.math.serialization.Representation repr)
public static ByteArrayImplementation fromRandom(int numberBytes)
ByteArrayImplementation instance filled with numberBytes bytes of randomnessnumberBytes - number of random bytes / length of resulting ByteArrayImplementationpublic ByteArrayImplementation append(org.cryptimeleon.math.misc.ByteArrayImpl a)
append in class org.cryptimeleon.math.misc.ByteArrayImplpublic ByteArrayImplementation substring(int firstIndex, int length)
substring in class org.cryptimeleon.math.misc.ByteArrayImplpublic ByteArrayImplementation xor(org.cryptimeleon.math.misc.ByteArrayImpl a)
xor in class org.cryptimeleon.math.misc.ByteArrayImpl