28 lines
700 B
Java
28 lines
700 B
Java
|
package org.bouncycastle.crypto.params;
|
||
|
|
||
|
import org.bouncycastle.crypto.CipherParameters;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class RC5Parameters implements CipherParameters {
|
||
|
private byte[] key;
|
||
|
private int rounds;
|
||
|
|
||
|
public int getRounds() {
|
||
|
return this.rounds;
|
||
|
}
|
||
|
|
||
|
public byte[] getKey() {
|
||
|
return this.key;
|
||
|
}
|
||
|
|
||
|
public RC5Parameters(byte[] bArr, int i) {
|
||
|
if (bArr.length > 255) {
|
||
|
throw new IllegalArgumentException("RC5 key length can be no greater than 255");
|
||
|
}
|
||
|
byte[] bArr2 = new byte[bArr.length];
|
||
|
this.key = bArr2;
|
||
|
this.rounds = i;
|
||
|
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
|
||
|
}
|
||
|
}
|