
AI_MD5
AI_MD5
Purpose:
This AI allows you to create a message digest using the MD5 digest algorithm as defined in RFC 1321. This algorithm processes input data 64 bytes at a time, but the length of the input does not have to be a multiple of 64 because the algorithm pads automatically.
The primary use for this AI is to authenticate data. Other algorithms that can be used for message digesting are AI_MD2 and AI_SHA1 and their variants.
Type of information this allows you to use:
the MD5 message digest algorithm as defined in RFC 1321.
Format of info supplied to B_SetAlgorithmInfo:
NULL_PTR.
Format of info returned by B_GetAlgorithmInfo:
NULL_PTR.
Crypto-C procedures to use with algorithm object:
B_DigestInit, B_DigestUpdate, and B_DigestFinal. Supply NULL_PTR for the keyObject argument in B_DigestInit.
Algorithm methods to include in application’s algorithm chooser:
AM_MD5.
Compatible representation:
AI_MD5_BER, AI_MD5_PEM.
Output considerations:
The output of B_DigestFinal will be 16 bytes long.
C h a p t e r 2 A l g o r i t h m I n f o Ty p e s | 117 |