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; } }