-
Notifications
You must be signed in to change notification settings - Fork 50
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
);
key
(const void *
)
The secret key to use for encryption. This buffer must be 16 bytes, the size necessary for AES-128.
MTY_AESGCM *
On failure, NULL
is returned. Call MTY_GetLog
for details.
The returned MTY_AESGCM
context must be destroyed with MTY_AESGCMDestroy
.