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

34 lines
1.0 KiB
Java

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