AI_MAC
96 RSA BSAFE Crypto-C Library Reference Manual
AI_MAC
Purpose:
This AI allows you to create a variable-length message authentication code (MAC) on
a non-linear feedback shift register.
Type of information this allows you to use:
the MAC length parameter for the MAC algorithm
Format of info supplied to B_SetAlgorithmInfo:
pointer to a B_MAC_PARAMS structure:
The minimum
macLen
is 2.
Format of info returned by B_GetAlgorithmInfo:
pointer to a B_MAC_PARAMS structure (see above).
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_MAC.
Output considerations:
The output of B_DigestFinal will be
macLen
bytes long.
typedef struct {
unsigned int macLen; /* length of MAC value */
} B_MAC_PARAMS;