RSA Security 5 manual BGenerateInit

Models: 5

1 376
Download 376 pages 51.16 Kb
Page 326
Image 326

B_GenerateInit

B_GenerateInit

int B_GenerateInit (

 

 

 

 

B_ALGORITHM_OBJ

algorithmObject,

/* algorithm object */

B_ALGORITHM_CHOOSER algorithmChooser,

/*

algorithm

chooser */

A_SURRENDER_CTX

*surrenderContext

/*

surrender

context */

);

 

 

 

 

 

 

 

 

 

Description

B_GenerateInit initializes algorithmObject using the algorithm specified by a previous call to B_SetAlgorithmInfo. The chooser for selecting the algorithm method is algorithmChooser. The surrender context for processing and canceling during lengthy operations is surrenderContext; if its value is (A_SURRENDER_CTX *)NULL_PTR, Crypto-C does not use it.

This routine is used to initialize several of the toolkit's parameter generation algorithms like B_GenerateKeypair or B_GenerateParameters. However, B_RandomInit is used to initialize the generator for B_GenerateRandomBytes.

Return value

Value

Description

0

Operation was successful.

non-zero

see Appendix A, ”Crypto-C Error Types”

 

 

3 1 6

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

Page 326
Image 326
RSA Security 5 manual BGenerateInit