To use the "core" ANSI C interface, include the diCryptoSys.h
file with your source code
and link with the diCryptoSys.lib
library. The only non-ANSI C requirement
is that your complier supports the __stdcall
calling convention to call native API functions from a Windows native DLL.
The sample C code TestAPI.c
provided in the distribution (formerly API_Examples.c
) carries out a variety
of tests using known test vectors. There are examples given for each function.
The "core" VB6/VBA functions and ANSI C functions are identical in form. The function names are identical, the arguments are the same (even though we may have used different parameter names in the VBA and C syntaxes), and the same warnings given in the Remarks section apply to both. Just be careful to add an extra character for output string types in C.