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