Skip to content

MTY_DTLSEncrypt

chrisd1100 edited this page Mar 26, 2023 · 1 revision

Encrypt data with the current DTLS context.

bool MTY_DTLSEncrypt(
    MTY_DTLS *   ctx,
    const void * in,
    size_t       inSize,
    void *       out,
    size_t       outSize,
    size_t *     written
);

Parameters

ctx (MTY_DTLS *)

An MTY_DTLS context.

in (const void *)

Input plain text data.

inSize (size_t)

Size in bytes of in.

out (void *)

Output encrypted DTLS message.

outSize (size_t)

Size in bytes of out.

written (size_t *)

Set to the number of bytes written to out.

Return value

bool

Returns true on success, false on failure. Call MTY_GetLog for details.

Platform support

Windows   Linux  

See also

Module: DTLS

Clone this wiki locally