Algorithms in Crypto-C
104 RSA BSAFE Crypto-C Developer’s Guide
Note: Not all message digests are recommended. See “Message Digests” on page 47 for details.
Table 4-2 Message Authentication
Algorithm Info Type Description Standards
AI_MAC BSAFE 1.x message authentication code; supplied for
backward compatibility with BSAFE 1.x
AI_HMAC Hash-Based Message Authentication Code SET Draft
Table 4-3 ASCII Encoding
Algorithm Info Type Description Standards
AI_RFC1113Recode ASCII/binary conversion RFC1113/RFC1421; RFC1521; MIME Base64
Table 4-4 Pseudo-Random Number Generation
Algorithm Info Type Description
AI_MD2Random MD2 pseudo-random number generator
AI_MD5Random MD5 pseudo-random number generator
AI_SHA1Random Identical to AI_X962Random_V0. For forward compatibility,
we recommend that you use AI_X962Random_V0.
AI_X931_Random Generates pseudo-random numbers for RSA key generation in
conformance with ANSI X9.31 standard. This AI is intended for
use with AI_RSAStrongKeyGen only.
AI_X962Random_V0 SHA1 pseudo-random number generator based on X9.62
Table 4-5 Symmetric Stream Ciphers
Some stream ciphers include message authentication codes to detect tampering with the data stream.
Algorithm Info Type Description BER MAC
AI_RC4 RC4
AI_RC4_BER RC4 a