AI_DSA

AI_DSA

Purpose:

This AI allows you to create or verify raw DSA signatures when the 20-byte input is already known. It does not compute a message digest before applying the signature operation. See AI_DSAWithSHA1 for the DSA algorithm type that involves the SHA1 digest operation.

Type of information this allows you to use:

the DSA signature algorithm for performing raw DSA signing and verifying as defined in FIPS PUB 186.

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_SignInit, B_SignUpdate, B_SignFinal, B_VerifyInit, B_VerifyUpdate, and

B_VerifyFinal. You must pass a random algorithm in B_SignFinal, but may pass (B_ALGORITHM_OBJ)NULL_PTR for all other randomAlgorithm arguments.

Algorithm methods to include in application’s algorithm chooser:

AM_DSA_SIGN for signature creation and AM_DSA_VERIFY for signature verification.

Key info types for keyObject in B_SignInit:

KI_DSAPrivate, KI_DSAPrivateBER, or KI_DSAPrivateX957BER.

Key info types for keyObject in B_VerifyInit:

KI_DSAPublic, KI_DSAPublicBER, or KI_DSAPublicX957BER.

5 0

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 60
Image 60
RSA Security 5 manual Aidsa, Key info types for keyObject in BVerifyInit