
Chapter 4 Using Crypto-C 103
Algorithms in Crypto-C
PEM-Based Algorithm Info Types
The Privacy Enhanced Mail (PEM) draft standard is a product of the Internet
Activities Board, Network Working Group (see RFC 1421-1424). It defines the proper
formatting of information passed between entities in electronic mail. Formatting
information to follow this standard is fairly simple.
BSAFE1 Algorithm Info Types
The fourth kind of AI ends with BSAFE1. These algorithm info types are only for
backward compatibility with applications using the BSAFE 1.x formats.
Summary of AIs
This section lists all of the algorithm info types offered in RSA BSAFE Crypto-C. A
typical application supplies an algorithm information type as the
infoType
argument
to
B_SetAlgorithmInfo. Algorithm info types are grouped by function into the
following tables.
Table 4-1 Message Digests
Algorithm Info Type Description Standards BER PEM
AI_MD2 MD2 message digest RFC 1319
AI_MD2_BER MD2 message digest; BER-encoded
algorithm identifier
RFC 1319 a
AI_MD2_PEM MD2 message digest with PEM RFC 1423 a
AI_MD5 MD5 message digest RFC 1321
AI_MD5_BER MD5 message digest; BER-encoded
algorithm identifier
RFC 1321 a
AI_MD5_PEM MD5 message digest, PEM-encoded
algorithm identifier
RFC 1423 a
AI_MD Supplied for backward compatibility
with the BSAFE 1.x message digest
algorithm
none
AI_SHA1 SHA1 message digest FIPS PUB 180-1
AI_SHA1_BER SHA1 message digest; BER-
encoded algorithm identifier
FIPS PUB 180-1