A SERVICE OF

logo

B_GenerateParameters
318 RSA BSAFE Crypto-C Library Reference Manual
B_GenerateParameters
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
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 */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”