#./fio-stl/153 aes.h
4 public symbols.
#Functions
#fio_aes128_gcm_enc
c
void fio_aes128_gcm_enc(void *restrict mac, void *restrict data, size_t len, const void *ad, size_t adlen, const void *key, const void *nonce)Performs in-place AES-128-GCM encryption with authentication.
macMUST point to a buffer with (at least) 16 available bytes.keyMUST point to a 128 bit key (16 Bytes).nonceMUST point to a 96 bit nonce (12 Bytes).adMAY be omitted, will NOT be encrypted.dataMAY be omitted, WILL be encrypted.
Symbol type: function
#fio_aes128_gcm_dec
c
int fio_aes128_gcm_dec(void *restrict mac, void *restrict data, size_t len, const void *ad, size_t adlen, const void *key, const void *nonce)Performs in-place AES-128-GCM decryption with authentication verification.
macMUST point to a buffer with the 16 byte MAC to verify.keyMUST point to a 128 bit key (16 Bytes).nonceMUST point to a 96 bit nonce (12 Bytes).adMAY be omitted ONLY IF originally omitted.dataMAY be omitted, WILL be decrypted.
Returns -1 on error (authentication failed).
Symbol type: function
#fio_aes256_gcm_enc
c
void fio_aes256_gcm_enc(void *restrict mac, void *restrict data, size_t len, const void *ad, size_t adlen, const void *key, const void *nonce)Performs in-place AES-256-GCM encryption with authentication.
macMUST point to a buffer with (at least) 16 available bytes.keyMUST point to a 256 bit key (32 Bytes).nonceMUST point to a 96 bit nonce (12 Bytes).adMAY be omitted, will NOT be encrypted.dataMAY be omitted, WILL be encrypted.
Symbol type: function
#fio_aes256_gcm_dec
c
int fio_aes256_gcm_dec(void *restrict mac, void *restrict data, size_t len, const void *ad, size_t adlen, const void *key, const void *nonce)Performs in-place AES-256-GCM decryption with authentication verification.
macMUST point to a buffer with the 16 byte MAC to verify.keyMUST point to a 256 bit key (32 Bytes).nonceMUST point to a 96 bit nonce (12 Bytes).adMAY be omitted ONLY IF originally omitted.dataMAY be omitted, WILL be decrypted.
Returns -1 on error (authentication failed).
Symbol type: function