B_DecodeDigestInfo

B_DecodeDigestInfo

int B_DecodeDigestInfo (

 

ITEM

*algorithmID,

/* message digest algorithm identifier */

ITEM

*digest,

/* message digest value */

unsigned char *digestInfo,

/* digestInfo encoding */

unsigned int

digestInfoLen

/* length of digestInfo */

);

 

 

 

 

 

Description

B_DecodeDigestInfo decodes the BER encoding of a PKCS #1 DigestInfo type that is given by digestInfo of length digestInfoLen. On output, the algorithmID ITEM gives the digest algorithm identifier and the digest ITEM gives the digest value. The ITEM type is defined by the KI_Item key info type on page 273.

Return value

Value

Description

0

Operation was successful.

non-zero

see Appendix A, “Crypto-C Error Types”

 

 

2 9 6

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 306
Image 306
RSA Security 5 manual Int BDecodeDigestInfo