B_GenerateParameters

B_GenerateParameters

int B_GenerateParameters (

 

B_ALGORITHM_OBJ

algorithmObject,

/* algorithm object */

B_ALGORITHM_OBJ

resultAlgorithmObject,

/* result algorithm object */

B_ALGORITHM_OBJ

randomAlgorithmObject,

/* random algorithm */

A_SURRENDER_CTX *surrenderContext

/* surrender context */

);

 

 

 

 

 

Description

B_GenerateParameters uses algorithmObject to generate algorithm parameters, setting resultAlgorithmObject to the result. The application may then use B_GetAlgorithmInfo to get the new parameters from resultAlgorithmObject. The algorithm object for supplying random numbers is randomAlgorithmObject. 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. algorithmObject is reset to the state it was in after the call to B_GenerateInit, so that another parameter generation may be performed. See B_GenerateInit.

Return value

Value

Description

0

Operation was successful.

non-zero

see Appendix A, ”Crypto-C Error Types”

 

 

3 1 8

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 328
Image 328
RSA Security 5 manual Int BGenerateParameters