public static class Encryption.KeyIv extends Object
| Constructor and Description |
|---|
KeyIv()
Default construct KeyIV with a random key and IV.
|
KeyIv(byte[] keyMaterial)
Construct KeyIV from some keyMaterial, which is the concatenation of IV and Key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getKeyMaterial()
Getter for the key material, which is a concatenation of IV and the key.
|
public KeyIv(byte[] keyMaterial)
throws CothorityCryptoException
keyMaterial - must be 28 bytes, the first 12 bytes is used as the IV, the second 16 bytes is the actual
key.CothorityCryptoException - is something goes wrong.public KeyIv()
Copyright © 2019. All rights reserved.