
AI_X931Random
A_X931_RANDOM_PARAMS structure otherwise.
BSAFE procedures to use with algorithm object:
B_RandomInit, B_RandomUpdate, and B_GenerateRandomBytes, and as the randomAlgorithm argument to other procedures.
Algorithm methods to include in application’s algorithm chooser:
AM_X931_RANDOM.
Notes
This AI is intended for use with AI_StrongKeyGen. When used with AI_StrongKeyGen, numberOfStreams must always be equal to 6.
Internal to this implementation, for numberOfStreams = 6, the entropy is divided as follows (for the purpose of this explanation, bits of entropy are bits that are unpredictable):
•Seeds 1, 2, 4, and 5 need only 101 bits, or 13 bytes, of entropy.
•Seeds 3 and 6 need
Although seeds 1, 2, 4, and 5 only need 13 bytes (101 bits) of random seed, all 6 of the seeds take up the same amount of physical space in memory. For example, for the modulus size of 1536 bits, you will seed a buffer of 6 times 92 bytes in length, or 552 bytes. This buffer is then divided into 6 evenly distributed
Although
2 4 2 | R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l |