org.opentelecoms.gsm0348.impl.crypto.params.ParametersWithIV Maven / Gradle / Ivy
package org.opentelecoms.gsm0348.impl.crypto.params;
import org.opentelecoms.gsm0348.impl.crypto.CipherParameters;
public class ParametersWithIV implements CipherParameters {
private byte[] iv;
private CipherParameters parameters;
public ParametersWithIV(CipherParameters paramCipherParameters, byte[] paramArrayOfByte) {
this(paramCipherParameters, paramArrayOfByte, 0, paramArrayOfByte.length);
}
public ParametersWithIV(CipherParameters paramCipherParameters, byte[] paramArrayOfByte, int paramInt1, int paramInt2) {
this.iv = new byte[paramInt2];
this.parameters = paramCipherParameters;
System.arraycopy(paramArrayOfByte, paramInt1, this.iv, 0, paramInt2);
}
public byte[] getIV() {
return this.iv;
}
public CipherParameters getParameters() {
return this.parameters;
}
}