what-the-bank/sources/org/bouncycastle/crypto/params/RC5Parameters.java

28 lines
700 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}