public TweakableBlockCipherParameters(KeyParameter key, byte[] tweak) { this.key = key; this.tweak = Arrays.Clone(tweak); }
/** * 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) { }