TLSSession.decrypt

Decrypt a session created by encrypt

  1. TLSSession decrypt(const(ubyte)* buf, size_t buf_len, SymmetricKey master_key)
  2. TLSSession decrypt(Vector!ubyte ctext, SymmetricKey key)
    class TLSSession
    public static
    decrypt
    (
    const ref Vector!ubyte ctext
    ,)

Parameters

ctext Vector!ubyte

the ciphertext returned by encrypt

key SymmetricKey

the same key used by the encrypting side

Meta