AI_DSAWithSHA1
AI_DSAWithSHA1
Purpose:
This AI allows you to create or verify SHA1 DSA signatures. It is passed the plaintext and computes the SHA1 digest as well as the DSA signature of that digest. See AI_DSA for the DSA algorithm type without the SHA1 digest operation. See AI_DSAWithSHA1_BER for the same algorithm type with BER encoding.
Type of information this allows you to use:
the DSA With SHA1 signature algorithm that uses the SHA1 digest algorithm and DSA to create and verify DSA digital signatures as defined in X9.57 Draft Section 5.3.1 and 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_SHA and 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.
C h a p t e r 2 A l g o r i t h m I n f o Ty p e s | 55 |