33 lines
1.0 KiB
Java
33 lines
1.0 KiB
Java
package o;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.security.GeneralSecurityException;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class JNP implements InterfaceC4280bVg {
|
|
private final C10836eQY b;
|
|
|
|
public JNP(byte[] bArr) throws GeneralSecurityException {
|
|
this.b = new C10836eQY(bArr);
|
|
}
|
|
|
|
@Override // o.InterfaceC4280bVg
|
|
public final byte[] b(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
|
ByteBuffer allocate = ByteBuffer.allocate(bArr.length + 40);
|
|
byte[] b = YTf.b(24);
|
|
allocate.put(b);
|
|
this.b.b(allocate, b, bArr, bArr2);
|
|
return allocate.array();
|
|
}
|
|
|
|
@Override // o.InterfaceC4280bVg
|
|
public final byte[] d(byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
|
|
if (bArr.length < 40) {
|
|
throw new GeneralSecurityException("ciphertext too short");
|
|
}
|
|
byte[] copyOf = Arrays.copyOf(bArr, 24);
|
|
return this.b.a(ByteBuffer.wrap(bArr, 24, bArr.length - 24), copyOf, bArr2);
|
|
}
|
|
}
|