Small code changes to allow compilation by the Borland BCC32.exe compiler and to eliminate a warning about a signed/unsigned comparison.
BCC32.exe compiler is still used in Embarcadero C++ Builder 12.
In function encrypt_cb iv is now just a pointer to an array of 16 bytes. Borland's compiler does not accept current notation, and there is no reason for it. Besides, if current argument iv is a pointer to a pointer to an array of bytes, then checking if iv is not null does not ensure that iv that is an argument to a function detail::xor_data(s, iv) is not null.
Small code changes to allow compilation by the Borland BCC32.exe compiler and to eliminate a warning about a signed/unsigned comparison. BCC32.exe compiler is still used in Embarcadero C++ Builder 12.
In function encrypt_cb iv is now just a pointer to an array of 16 bytes. Borland's compiler does not accept current notation, and there is no reason for it. Besides, if current argument iv is a pointer to a pointer to an array of bytes, then checking if iv is not null does not ensure that iv that is an argument to a function detail::xor_data(s, iv) is not null.