org.bouncycastle.crypto.tls
Class TlsRSAUtils
java.lang.Object
org.bouncycastle.crypto.tls.TlsRSAUtils
public class TlsRSAUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TlsRSAUtils
public TlsRSAUtils()
generateEncryptedPreMasterSecret
public static byte[] generateEncryptedPreMasterSecret(TlsContext context,
RSAKeyParameters rsaServerPublicKey,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
safeDecryptPreMasterSecret
public static byte[] safeDecryptPreMasterSecret(TlsContext context,
TlsEncryptionCredentials encryptionCredentials,
byte[] encryptedPreMasterSecret)
throws java.io.IOException
- Deprecated.
TlsEncryptionCredentials.decryptPreMasterSecret(byte[])
is expected to decrypt safely
- Throws:
java.io.IOException
safeDecryptPreMasterSecret
public static byte[] safeDecryptPreMasterSecret(TlsContext context,
RSAKeyParameters rsaServerPrivateKey,
byte[] encryptedPreMasterSecret)