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

29 lines
1.3 KiB
Java

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 interface TlsSigner {
Signer createSigner(AsymmetricKeyParameter asymmetricKeyParameter);
Signer createSigner(SignatureAndHashAlgorithm signatureAndHashAlgorithm, AsymmetricKeyParameter asymmetricKeyParameter);
Signer createVerifyer(AsymmetricKeyParameter asymmetricKeyParameter);
Signer createVerifyer(SignatureAndHashAlgorithm signatureAndHashAlgorithm, AsymmetricKeyParameter asymmetricKeyParameter);
byte[] generateRawSignature(AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr) throws CryptoException;
byte[] generateRawSignature(SignatureAndHashAlgorithm signatureAndHashAlgorithm, AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr) throws CryptoException;
void init(TlsContext tlsContext);
boolean isValidPublicKey(AsymmetricKeyParameter asymmetricKeyParameter);
boolean verifyRawSignature(SignatureAndHashAlgorithm signatureAndHashAlgorithm, byte[] bArr, AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr2) throws CryptoException;
boolean verifyRawSignature(byte[] bArr, AsymmetricKeyParameter asymmetricKeyParameter, byte[] bArr2) throws CryptoException;
}