Here is the function I am trying to run:
Code:
int encrypt( |
|
unsigned char *cipher, unsigned long long *cipherlen, |
|
const unsigned char *plaintext, unsigned long long plaintextlen, |
|
const unsigned char *data, unsigned long long datalen, |
|
const unsigned char *sec, |
|
const unsigned char *public, |
|
const unsigned char *key); |
Here is my attempt:
Code:
#define BUFFER_SIZE 16
const unsigned char nonce[] = {00, 01, 02, 03, 04, 05, 06, 07, 0x08};
const unsigned char key[] = {00, 01, 02, 03, 04, 05, 06, 07, 0x08,};
const unsigned char ad[] = {00, 01, 02, 03};
unsigned char buffer[BUFFER_SIZE + 1];
int main(void)
{
int encrypt(
unsigned char buffer, sizeof buffer,
NULL, NULL,
const unsigned char data, sizeof data,
NULL,
const unsigned char public,
const unsigned char key);
for(int i = 0; i < sizeof buffer; ++i) {
printf("%02x", buffer[i]);};
}
The error flags 'expected identifier before sizeof' and 'expected ',' or '...' before sizeof '
Any suggestions?