package org.bouncycastle.crypto.tls; import org.bouncycastle.crypto.DSA; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.crypto.params.ECPublicKeyParameters; import org.bouncycastle.crypto.signers.ECDSASigner; import org.bouncycastle.crypto.signers.HMacDSAKCalculator; /* loaded from: classes6.dex */ public class TlsECDSASigner extends TlsDSASigner { @Override // org.bouncycastle.crypto.tls.TlsDSASigner protected short getSignatureAlgorithm() { return (short) 3; } @Override // org.bouncycastle.crypto.tls.TlsSigner public boolean isValidPublicKey(AsymmetricKeyParameter asymmetricKeyParameter) { return asymmetricKeyParameter instanceof ECPublicKeyParameters; } @Override // org.bouncycastle.crypto.tls.TlsDSASigner protected DSA createDSAImpl(short s) { return new ECDSASigner(new HMacDSAKCalculator(TlsUtils.createHash(s))); } }