B_GenerateInit
316 RSA BSAFE Crypto-C Library Reference Manual
B_GenerateInit
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
int B_GenerateInit (
B_ALGORITHM_OBJ algorithmObject, /* algorithm object */
B_ALGORITHM_CHOOSER algorithmChooser, /* algorithm chooser */
A_SURRENDER_CTX *surrenderContext /* surrender context */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”