-
Notifications
You must be signed in to change notification settings - Fork 56
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
);
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
.
bool
Returns true
on success, false
on failure. Call MTY_GetLog
for details.