KI_TOKEN_INFO

B_SymmetricKeyGenerate

B_SymmetricKeyGenerate

int B_SymmetricKeyGenerate (

B_ALGORITHM_OBJ algorithmObject,

B_KEY_OBJ symmetricKey, B_ALGORITHM_OBJ randomObject, A_SURRENDER_CTX *surrenderContext; );

Description

Creates a symmetric key in accordance with data specified during the

B_SetAlgorithmInfo step. If hardware is present, the key information is stored in a structure. If no hardware is present, the key information is stored in

KI_EXTENDED_TOKEN_INFO format, which extends the KI_Token base type.

Return value

Value

Description

0

Operation was successful.

nonzero

Error. See Appendix A, ”Crypto-C Error Types.”

 

 

C h a p t e r 4 D e t a i l s o f C r y p t o - C F u n c t i o n s

335

Page 345
Image 345
RSA Security 5 manual Int BSymmetricKeyGenerate