what-the-bank/sources/org/bouncycastle/crypto/params/DHKeyParameters.java

32 lines
978 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}