AI_SHA1
224 RSA BSAFE Crypto-C Library Reference Manual
AI_SHA1
Purpose:
This AI allows you to create a message digest using the SHA1 digest algorithm as
defined in FIPS PUB 180-1. 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 as 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_MD5 and their variants.
Type of information this allows you to use:
the 20-byte SHA1 message digest algorithm as defined in FIPS PUB 180-1.
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_SHA.
Compatible representation:
AI_SHA1_BER
Output considerations:
The output of B_DigestFinal will be 20 bytes long.