34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
|
package o;
|
||
|
|
||
|
import java.nio.ByteBuffer;
|
||
|
import java.security.GeneralSecurityException;
|
||
|
import java.util.Arrays;
|
||
|
|
||
|
/* renamed from: o.bes, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class C4689bes implements InterfaceC4280bVg {
|
||
|
private final C3163asN a;
|
||
|
|
||
|
public C4689bes(byte[] bArr) throws GeneralSecurityException {
|
||
|
this.a = new C3163asN(bArr);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC4280bVg
|
||
|
public final byte[] b(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
||
|
ByteBuffer allocate = ByteBuffer.allocate(bArr.length + 28);
|
||
|
byte[] b = YTf.b(12);
|
||
|
allocate.put(b);
|
||
|
this.a.b(allocate, b, bArr, bArr2);
|
||
|
return allocate.array();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC4280bVg
|
||
|
public final byte[] d(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
||
|
if (bArr.length < 28) {
|
||
|
throw new GeneralSecurityException("ciphertext too short");
|
||
|
}
|
||
|
byte[] copyOf = Arrays.copyOf(bArr, 12);
|
||
|
return this.a.a(ByteBuffer.wrap(bArr, 12, bArr.length - 12), copyOf, bArr2);
|
||
|
}
|
||
|
}
|