what-the-bank/sources/o/UKk.java

21 lines
611 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes2.dex */
public final class UKk {
public static byte[] c(byte[] bArr) {
if (bArr.length != 16) {
throw new IllegalArgumentException("value must be a block.");
}
byte[] bArr2 = new byte[16];
for (int i = 0; i < 16; i++) {
byte b = (byte) ((bArr[i] << 1) & 254);
bArr2[i] = b;
if (i < 15) {
bArr2[i] = (byte) (((byte) ((bArr[i + 1] >> 7) & 1)) | b);
}
}
bArr2[15] = (byte) (((byte) ((bArr[0] >> 7) & 135)) ^ bArr2[15]);
return bArr2;
}
}