BLS
WINDEV ->C<->D buffer, unsigned byte December 15, 2008 08:25PM |
//C code void rc2_decrypt( const unsigned short xkey[64], unsigned char *plain, const unsigned char *cipher ) { unsigned x76, x54, x32, x10, i; x76 = (cipher[7] << 8) + cipher[6]; .........
//D programming language export extern(Windows) /*create DLL function */ void rc2_decrypt( const(ushort)[64] xkey, ubyte* plain, const(ubyte)* cipher )
//D programming language export extern(Windows) /*create DLL function using arrays*/ void rc2_decrypt( const(ushort)[64] xkey, ubyte[] plain, const(ubyte)[] cipher )
// WINDEV plain is buffer = "DecryptMePlease" // the rc2-decrypt plain parameter