B_GetAlgorithmInfo

B_GetAlgorithmInfo

B_GetAlgorithmInfo

int B_GetAlgorithmInfo (

 

POINTER

*info,

/* algorithm information */

B_ALGORITHM_OBJ algorithmObject,

/* algorithm object */

B_INFO_TYPE

infoType

/* type of algorithm information */

);

 

 

 

 

 

Description

B_GetAlgorithmInfo gets the information held by algorithmObject in the format specified by infoType, storing the result in info. The value of infoType is one of the algorithm info types with an AI_ prefix listed in Chapter 2. The format of the

information returned byis the same as the format supplied to B_SetAlgorithmInfo.

This routine can be used to convert between external representations of information. For example, an algorithm can be set up to perform encryption using AI_MD2WithDES_CBCPad, and later the BER representation of that algorithm can be computed by calling B_GetAlgorithmInfo with AI_MD2WithDES_CBCPadBER. These external representations of algorithm identifiers are used in RSA Security's PKCS standards and other industry cryptographic standards.

Return value

Value

Description

0

Operation was successful.

non-zero

see Appendix A, ”Crypto-C Error Types”

 

 

3 2 0

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 330
Image 330
RSA Security 5 manual Int BGetAlgorithmInfo