Common code shared between core sub-components. More...
Modules | |
math | |
Math Primitives and Group Operations. | |
errors | |
Error reporting interface. | |
fileparser | |
Parser for issuer material. | |
print_utils | |
Debug print routines. | |
types | |
SDK data types. | |
Typedefs | |
typedef int(__STDCALL * | BitSupplier) (unsigned int *rand_data, int num_bits, void *user_data) |
Generates random data. More... | |
Common code shared between core sub-components.
Constants, utility functions, and libraries that are used widely in the implementation or definition of APIs and samples.
typedef int(__STDCALL* BitSupplier) (unsigned int *rand_data, int num_bits, void *user_data) |
Generates random data.
The SDK provides the BitSupplier as a function prototype so that you will know the requirements for your own implementation of a random number generator.
You need to pass a pointer to your implementation of the random number generator into methods that require it.
For an example of how a BitSupplier is created, see the signmsg
example.
[out] | rand_data | destination buffer for random data generated by BitSupplier. The buffer will receive num_bits of random data. |
[in] | num_bits | specifies the size of the random data, in bits, to be generated. |
[in] | user_data | user data that will be passed to the random number generator. The usage of this data is specific to the implementation of the BitSupplier. For example, this could be used to pass a pointer to a data structure that maintains state across calls to your BitSupplier. |