TLSSession.decrypt

Decrypt a session created by encrypt

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

Parameters

buf const(ubyte)*

the ciphertext returned by encrypt

buf_len size_t

the size of ctext in bytes

master_key SymmetricKey

the same key used by the encrypting side

Meta