37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
package com.facetec.sdk;
|
|
|
|
import java.nio.charset.Charset;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ng {
|
|
public static final Charset e = Charset.forName("UTF-8");
|
|
|
|
public static int a(int i) {
|
|
return ((i & CipherSuite.DRAFT_TLS_DHE_RSA_WITH_AES_128_OCB) << 8) | (((-16777216) & i) >>> 24) | ((16711680 & i) >>> 8) | ((i & 255) << 24);
|
|
}
|
|
|
|
public static short c(short s) {
|
|
return (short) ((((s & 65535) >>> 8) & 255) | ((s & 255) << 8));
|
|
}
|
|
|
|
public static void d(long j, long j2, long j3) {
|
|
if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
|
|
throw new ArrayIndexOutOfBoundsException(String.format("size=%s offset=%s byteCount=%s", Long.valueOf(j), Long.valueOf(j2), Long.valueOf(j3)));
|
|
}
|
|
}
|
|
|
|
public static boolean c(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if (bArr[i4 + i] != bArr2[i4 + i2]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static void b(Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|