let say I have an array of character that I want to encrypt using symmetric key. I try to do some research, and I found out that I can use rc4_encrypt function to encrypt and decrypt (I found this function in man page of crypto(3). I try to do something like this:
char* myData = malloc(sizeof(char)*256);
//some code that fill the contain of the array
//encrypt myData
printf("encrypted array: %s", myData);
//decrypt myData
printf("decrypted array: %s", myData);
however, I don't know how can I use that rc4_encrypt function to encrypt and decrypt the array. Do I have to include anything? Can anyone help me? Thanks