zapret/nfq/crypto/aes-gcm.h

7 lines
312 B
C
Raw Normal View History

2022-03-25 16:59:58 +03:00
#pragma once
#include "gcm.h"
2024-06-19 19:46:16 +03:00
// mode : AES_ENCRYPT, AES_DECRYPT
int aes_gcm_crypt(int mode, uint8_t *output, const uint8_t *input, size_t input_length, const uint8_t *key, const size_t key_len, const uint8_t *iv, const size_t iv_len, const uint8_t *adata, size_t adata_len, uint8_t *atag, size_t atag_len);