TlsRSAUtils (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.crypto.tls

## Class TlsRSAUtils

- java.lang.Object
- - org.bouncycastle.crypto.tls.TlsRSAUtils

-     public class TlsRSAUtils
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TlsRSAUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `generateEncryptedPreMasterSecret(TlsContext context, RSAKeyParameters rsaServerPublicKey, java.io.OutputStream output)`
    `static byte[]` | `safeDecryptPreMasterSecret(TlsContext context, RSAKeyParameters rsaServerPrivateKey, byte[] encryptedPreMasterSecret)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TlsRSAUtils

          public TlsRSAUtils()

  - ### Method Detail

    - #### 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,
                                          RSAKeyParameters rsaServerPrivateKey,
                                          byte[] encryptedPreMasterSecret)