B_GetAlgorithmInfo
320 RSA BSAFE Crypto-C Library Reference Manual
B_GetAlgorithmInfo
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 by B_GetAlgorithmInfo is 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
int B_GetAlgorithmInfo (
POINTER *info, /* algorithm information */
B_ALGORITHM_OBJ algorithmObject, /* algorithm object */
B_INFO_TYPE infoType /* type of algorithm information */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”