package org.bouncycastle.crypto.params; /* loaded from: classes6.dex */ public class DHKeyParameters extends AsymmetricKeyParameter { private DHParameters params; public int hashCode() { int i = !isPrivate() ? 1 : 0; DHParameters dHParameters = this.params; return dHParameters != null ? i ^ dHParameters.hashCode() : i; } public DHParameters getParameters() { return this.params; } public boolean equals(Object obj) { if (!(obj instanceof DHKeyParameters)) { return false; } DHParameters dHParameters = this.params; DHParameters parameters = ((DHKeyParameters) obj).getParameters(); return dHParameters == null ? parameters == null : dHParameters.equals(parameters); } /* JADX INFO: Access modifiers changed from: protected */ public DHKeyParameters(boolean z, DHParameters dHParameters) { super(z); this.params = dHParameters; } }