| RSA BSAFE Crypto-C |
Cryptographic Components for C |
| Search |
info Format
| B_SetAlgorithmInfo() | NULL_PTR, indicates that there is only one stream and no additional seeding is desired, or a pointer to A_X931_RANDOM_PARAMS.When AI_X931Random is used with AI_RSAStrongKeyGen, the numberOfStreams field must always be equal to 6. |
| B_GetAlgorithmInfo() | Returns a NULL_PTR if set with NULL_PTR. Otherwise returns a pointer to A_X931_RANDOM_PARAMS. |
AI_X931Random Information
| Functions to use | B_RandomInit(), B_RandomUpdate() and B_GenerateRandomBytes(), and as the randomAlgorithm argument to other procedures. |
| AMs to include | AM_X931_RANDOM |
Although Crypto-C does some basic error checking, the quality of the application's entropy is not measured fully by AI_X931Random, and it may be that no error is returned even if seed entropy is poor or if insufficient random streams are provided. The proper implementation of sufficient entropy sources is the responsibility of the application and not of Crypto-C. A hardware RNG such as the Intel RNG, if available, is a good source for a random seed. See Hardware Management for more information on using Crypto-C with the Intel RNG.