All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentelecoms.gsm0348.impl.crypto.params.ParametersWithIV Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy