B_DecodeDigestInfo
296 RSA BSAFE Crypto-C Library Reference Manual
B_DecodeDigestInfo
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 page273.
Return value
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 */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, “Crypto-C Error Types”