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

80 lines
1.8 KiB
Java

package org.bouncycastle.crypto.tls;
import org.bouncycastle.util.Arrays;
/* loaded from: classes6.dex */
public class SecurityParameters {
int entity = -1;
int cipherSuite = -1;
short compressionAlgorithm = 0;
int prfAlgorithm = -1;
int verifyDataLength = -1;
byte[] masterSecret = null;
byte[] clientRandom = null;
byte[] serverRandom = null;
byte[] sessionHash = null;
byte[] pskIdentity = null;
byte[] srpIdentity = null;
short maxFragmentLength = -1;
boolean truncatedHMac = false;
boolean encryptThenMAC = false;
boolean extendedMasterSecret = false;
public int getVerifyDataLength() {
return this.verifyDataLength;
}
public byte[] getSessionHash() {
return this.sessionHash;
}
public byte[] getServerRandom() {
return this.serverRandom;
}
public byte[] getSRPIdentity() {
return this.srpIdentity;
}
public byte[] getPskIdentity() {
return this.pskIdentity;
}
public int getPrfAlgorithm() {
return this.prfAlgorithm;
}
public byte[] getPSKIdentity() {
return this.pskIdentity;
}
public byte[] getMasterSecret() {
return this.masterSecret;
}
public int getEntity() {
return this.entity;
}
public short getCompressionAlgorithm() {
return this.compressionAlgorithm;
}
public byte[] getClientRandom() {
return this.clientRandom;
}
public int getCipherSuite() {
return this.cipherSuite;
}
/* JADX INFO: Access modifiers changed from: package-private */
public void clear() {
byte[] bArr = this.masterSecret;
if (bArr != null) {
Arrays.fill(bArr, (byte) 0);
this.masterSecret = null;
}
}
}