it is really easy, but change the interface to PBYTE for clarification
BOOL EncryptFile(
PBYTE szSource,
PBYTE szDestination,
BYTE* KeyBlob)
{
for( int i = 0; i < size; i++ ) { szDestination[i] = szSource[i] & KeayBlob[i]; }
}
Take a dive into a good
pointers tutorial. Tip: run the code with the debugger