How do I return a byte array from C++ to C#
问题 So I've been struggling with this for a little bit. I'm trying to make my own AES 128 library to use with one of my programs. The library tests out and works in C++ (well for the encrypt function.. I haven't implemented the others) The 'Encrypt' function is like this: NEW CODE void Aes128Class::EncryptBlock(BYTE* outBlock, const BYTE* inBlock, const BYTE* cipherBlock) { BYTE temp[16] = {0x00}; Galois::XorBlock(temp, inBlock); Galois::XorBlock(temp, cipherBlock); BYTE expandedKey[176] = {0x00}