AI_X962Random_V0
AI_X962Random_V0
Purpose:
This AI allows you to generate a stream of
This algorithm can produce numbers between zero and the value of a given prime minus one. Such numbers are useful for the U.S. Government Digital Signature Standard (DSS).
Other algorithms that can be used to generate
Type of information this allows you to use:
the SHA1 pseudo-random generator as defined in X9.62.
Format of info supplied to B_SetAlgorithmInfo:
NULL_PTR, if it is desired to use the AI_X962Random_V0 object in the same fashion as AI_MD5Random.
a pointer to an A_SHA_RANDOM_PARAMS structure:.
typedef struct {
ITEM | prime; | /* Optional input for |
|
| /* generate a |
|
| /* in [1, prime - 1]. Set prime.len to zero otherwise */ |
ITEM | seed; | /* Special additional seeding of 20 to 128 bytes long.*/ |
/* May be used in place of usual B_UpdateRandom seeding calls, */ /* but requires the availability of nearly perfectly random bytes. */ /* If B_UpdateRandom seeding calls are used, then */ /* this additional seeding material is used to augment the */
/* randomness of the
}A_SHA_RANDOM_PARAMS;
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 | 243 |