Skip to content

MTY_AESGCMCreate

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Create an MTY_AESGCM context for AES-GCM-128 encryption/decryption.

MTY_AESGCM *MTY_AESGCMCreate(
    const void * key
);

Parameters

key (const void *)

The secret key to use for encryption. This buffer must be 16 bytes, the size necessary for AES-128.

Return value

MTY_AESGCM *

On failure, NULL is returned. Call MTY_GetLog for details.

The returned MTY_AESGCM context must be destroyed with MTY_AESGCMDestroy.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Crypto

Clone this wiki locally