![](/images/new-backgrounds/1225625/225625501x1.webp)
AI_X931Random
AI_X931Random
Purpose:
This AI allows you to generate random numbers for RSA key generation in conformance with X9.31. This AI can be used to supply multiple independent streams of randomness. It is included in
This AI is intended for use with AI_RSAStrongKeyGen only. The SHA1 based pseudo- random number generator, G(sha1), which is defined in the X9.31 standard and in the
Type of information this allows you to use:
A SHA1 based
Format of info supplied to B_SetAlgorithmInfo:
NULL_PTR, if there is only one stream and no additional seeding is desired, or
a pointer to an A_X931_RANDOM_PARAMS structure:
typedef struct |
|
|
{ |
|
|
unsigned int numberOfStreams; | /* number of independent streams */ | |
ITEM | seed; | /* additional seeding */ |
| /* to be equally divided among the streams */ | |
} A_X931_RANDOM_PARAMS; |
| |
|
|
|
When AI_X931Random is used with AI_RSAStrongKeyGen, the numberOfStreams field must always be equal to 6.
Format of info returned by B_GetAlgorithmInfo:
returns a NULL_PTR if set with NULL_PTR; returns a pointer to an
C h a p t e r 2 A l g o r i t h m I n f o Ty p e s | 241 |