what-the-bank/sources/org/bouncycastle/crypto/tls/UseSRTPData.java

29 lines
838 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.tls;
/* loaded from: classes6.dex */
public class UseSRTPData {
protected byte[] mki;
protected int[] protectionProfiles;
public int[] getProtectionProfiles() {
return this.protectionProfiles;
}
public byte[] getMki() {
return this.mki;
}
public UseSRTPData(int[] iArr, byte[] bArr) {
if (iArr == null || iArr.length <= 0 || iArr.length >= 32768) {
throw new IllegalArgumentException("'protectionProfiles' must have length from 1 to (2^15 - 1)");
}
if (bArr == null) {
bArr = TlsUtils.EMPTY_BYTES;
} else if (bArr.length > 255) {
throw new IllegalArgumentException("'mki' cannot be longer than 255 bytes");
}
this.protectionProfiles = iArr;
this.mki = bArr;
}
}