Algorithms in Crypto-C

Table 4-7RSA Public-Key Cryptography (Continued)

Algorithm Info Type

Description

Pad

BER PEM

Digital Signatures

Composite operations for signing data: digest the data, then encrypt the BER encoding of the digest with RSA.

BER-encoded digest is 34 bytes for 16-bit digests (MD2, MD5); min. RSA modulus is 45 bytes long. BER-encoded digest is 35 bytes for 20-byte digests (SHA1); min. RSA modulus is 46 bytes long.

AI_MD2WithRSAEncryption

MD2 digest with RSA encryption

PKCS #1

 

AI_MD2WithRSAEncryptionBER

MD2 digest with RSA encryption,

PKCS #1

a

 

BER-encoded algorithm identifier

 

 

AI_MD5WithRSAEncryption

MD5 digest with RSA encryption

PKCS #1

 

AI_MD5WithRSAEncryptionBER

MD5 digest with RSA encryption,

PKCS #1

a

 

BER-encoded algorithm identifier

 

 

AI_SHA1WithRSAEncryption

SHA1 digest with RSA encryption

PKCS #1

 

AI_SHA1WithRSAEncryptionBER

SHA1 digest with RSA encryption,

PKCS #1

a

 

BER-encoded algorithm identifier

 

 

 

 

 

 

Table 4-8DSA Public-Key Cryptography

Algorithm Info Type

Description

BER

Parameter Generation

 

 

AI_DSAParamGen

DSA parameter generation

 

Key Generation

 

 

AI_DSAKeyGen

DSA key generation

 

Digital Signatures

 

 

AI_DSA

DSA sign/verify a 20-byte input

 

AI_DSAWithSHA1

SHA1 digest with DSA sign/verify

 

AI_DSAWithSHA1_BER

SHA1 digest with DSA sign/verify,

a

 

BER-encoded algorithm identifier

 

 

 

 

C h a p t e r 4 U s i n g C r y p t o - C

1 0 9

Page 131
Image 131
RSA Security 5.2.2 manual 8DSA Public-Key Cryptography, Digital Signatures