AI_SHA1

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 for message digesting are AI_MD2 and AI_MD5

data. Other algorithms that can be used 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.

2 2 4

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 234
Image 234
RSA Security 5 manual AISHA1, Output of BDigestFinal will be 20 bytes long