Integer
and 64-bit LongLong
types are never used in CryptoSys API.
Only 32-bit Long
types are used.
If you get an error of the form
Compile error: ByRef argument type mismatch
it means you have omitted the "(0)" after a Byte parameter, e.g.
Dim abData() As Byte
' ...
nRet = CRC_Bytes(abData, nBytes, 0) ' WRONG: compile error
nRet = CRC_Bytes(abData(0), nBytes, 0) ' CORRECT