Beispiel #1
0
 public TweakableBlockCipherParameters(KeyParameter key, byte[] tweak)
 {
     this.key   = key;
     this.tweak = Arrays.Clone(tweak);
 }
Beispiel #2
0
 /**
  * Base constructor.
  *
  * @param key key to be used by underlying cipher
  * @param macSize macSize in bits
  * @param nonce nonce to be used
  */
 public AeadParameters(KeyParameter key, int macSize, byte[] nonce)
     : this(key, macSize, nonce, null)
 {
 }