what-the-bank/sources/org/bouncycastle/crypto/tls/AbstractTlsSigner.java

36 lines
1.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.tls;
import org.bouncycastle.crypto.CryptoException;
import org.bouncycastle.crypto.Signer;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
/* loaded from: classes6.dex */
public abstract class AbstractTlsSigner implements TlsSigner {
protected TlsContext context;
@Override // org.bouncycastle.crypto.tls.TlsSigner
public boolean verifyRawSignature(byte[] bArr, AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr2) throws CryptoException {
return verifyRawSignature(null, bArr, asymmetricKeyParameter, bArr2);
}
@Override // org.bouncycastle.crypto.tls.TlsSigner
public void init(TlsContext tlsContext) {
this.context = tlsContext;
}
@Override // org.bouncycastle.crypto.tls.TlsSigner
public byte[] generateRawSignature(AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr) throws CryptoException {
return generateRawSignature(null, asymmetricKeyParameter, bArr);
}
@Override // org.bouncycastle.crypto.tls.TlsSigner
public Signer createVerifyer(AsymmetricKeyParameter asymmetricKeyParameter) {
return createVerifyer(null, asymmetricKeyParameter);
}
@Override // org.bouncycastle.crypto.tls.TlsSigner
public Signer createSigner(AsymmetricKeyParameter asymmetricKeyParameter) {
return createSigner(null, asymmetricKeyParameter);
}
}