| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | checkPkcs1Encoding2(byte[] buf, int pkcs1Length, int plaintextLength)
Check the argument is a valid encoding with type 2 of a plaintext with the given length. |
| private static BigInteger | |
| public static byte[] | decryptPreMasterSecret(byte[] in, int inOff, int inLen, RSAKeyParameters privateKey, int protocolVersion, SecureRandom secureRandom)
|
| public static int | |
| private static BigInteger | |
| private static byte[] | |
| private static BigInteger | |
| private static int | |
| private static byte[] |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| PRE_MASTER_SECRET_LENGTH | back to summary |
|---|---|
| public static final int PRE_MASTER_SECRET_LENGTH | |
| TlsRsaKeyExchange | back to summary |
|---|---|
| private TlsRsaKeyExchange() | |
| caddTo | back to summary |
|---|---|
| private static int caddTo(int len, int cond, byte[] x, byte[] z) | |
| checkPkcs1Encoding2 | back to summary |
|---|---|
| private static int checkPkcs1Encoding2(byte[] buf, int pkcs1Length, int plaintextLength) Check the argument is a valid encoding with type 2 of a plaintext with the given length. Returns 0 if valid, or -1 if invalid. | |
| convertInput | back to summary |
|---|---|
| private static BigInteger convertInput(BigInteger modulus, byte[] in, int inOff, int inLen) | |
| decryptPreMasterSecret | back to summary |
|---|---|
| public static byte[] decryptPreMasterSecret(byte[] in, int inOff, int inLen, RSAKeyParameters privateKey, int protocolVersion, SecureRandom secureRandom) | |
| getInputLimit | back to summary |
|---|---|
| public static int getInputLimit(RSAKeyParameters privateKey) | |
| rsa | back to summary |
|---|---|
| private static BigInteger rsa(RSAKeyParameters privateKey, BigInteger input) | |
| rsaBlinded | back to summary |
|---|---|
| private static byte[] rsaBlinded(RSAKeyParameters privateKey, BigInteger input, SecureRandom secureRandom) | |
| rsaCrt | back to summary |
|---|---|
| private static BigInteger rsaCrt(RSAPrivateCrtKeyParameters crtKey, BigInteger input) | |
| subFrom | back to summary |
|---|---|
| private static int subFrom(int len, byte[] x, byte[] z) | |
| toBytes | back to summary |
|---|---|
| private static byte[] toBytes(BigInteger output, int fixedSize) | |