what-the-bank/sources/org/bouncycastle/crypto/io/SignerOutputStream.java

29 lines
693 B
Java

package org.bouncycastle.crypto.io;
import java.io.IOException;
import java.io.OutputStream;
import org.bouncycastle.crypto.Signer;
/* loaded from: classes6.dex */
public class SignerOutputStream extends OutputStream {
protected Signer signer;
@Override // java.io.OutputStream
public void write(byte[] bArr, int i, int i2) throws IOException {
this.signer.update(bArr, i, i2);
}
@Override // java.io.OutputStream
public void write(int i) throws IOException {
this.signer.update((byte) i);
}
public Signer getSigner() {
return this.signer;
}
public SignerOutputStream(Signer signer) {
this.signer = signer;
}
}