2021-08-03 07:33:18 +00:00
|
|
|
package co.discord.media_engine;
|
|
|
|
|
|
|
|
import c.d.b.a.a;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.util.Arrays;
|
|
|
|
/* compiled from: EncryptionSettings.kt */
|
|
|
|
public final class EncryptionSettings {
|
|
|
|
private final String mode;
|
|
|
|
private final int[] secretKey;
|
|
|
|
|
|
|
|
public EncryptionSettings(String str, int[] iArr) {
|
|
|
|
m.checkNotNullParameter(str, "mode");
|
|
|
|
m.checkNotNullParameter(iArr, "secretKey");
|
|
|
|
this.mode = str;
|
|
|
|
this.secretKey = iArr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ EncryptionSettings copy$default(EncryptionSettings encryptionSettings, String str, int[] iArr, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
str = encryptionSettings.mode;
|
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
iArr = encryptionSettings.secretKey;
|
|
|
|
}
|
|
|
|
return encryptionSettings.copy(str, iArr);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String component1() {
|
|
|
|
return this.mode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int[] component2() {
|
|
|
|
return this.secretKey;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final EncryptionSettings copy(String str, int[] iArr) {
|
|
|
|
m.checkNotNullParameter(str, "mode");
|
|
|
|
m.checkNotNullParameter(iArr, "secretKey");
|
|
|
|
return new EncryptionSettings(str, iArr);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof EncryptionSettings)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
EncryptionSettings encryptionSettings = (EncryptionSettings) obj;
|
|
|
|
return m.areEqual(this.mode, encryptionSettings.mode) && m.areEqual(this.secretKey, encryptionSettings.secretKey);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String getMode() {
|
|
|
|
return this.mode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int[] getSecretKey() {
|
|
|
|
return this.secretKey;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
String str = this.mode;
|
|
|
|
int i = 0;
|
|
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
|
|
int[] iArr = this.secretKey;
|
|
|
|
if (iArr != null) {
|
|
|
|
i = Arrays.hashCode(iArr);
|
|
|
|
}
|
|
|
|
return hashCode + i;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2021-10-09 06:29:02 +00:00
|
|
|
StringBuilder O = a.O("EncryptionSettings(mode=");
|
|
|
|
O.append(this.mode);
|
|
|
|
O.append(", secretKey=");
|
|
|
|
O.append(Arrays.toString(this.secretKey));
|
|
|
|
O.append(")");
|
|
|
|
return O.toString();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|