AI_SignVerify
236 RSA BSAFE Crypto-C Library Reference Manual
AI_SignVerify
Purpose:
This AI allows you to sign a message in compliance with the X9.31 standard, or to
verify X9.31 compliant signatures.
Type of information this allows you to use:
an RSA private key to sign a message in compliance with the X9.31 standard, or an
RSA public key to verify X9.31 compliant signatures. To be fully compliant with the
X9.31 standard, use only keys that are generated by
AI_RSAStrongKeyGen.
Format of info supplied to B_SetAlgorithmInfo:
a pointer to a B_SIGN_VERIFY_PARAMS structure:
Set the arguments for
B_SIGN_VERIFY_PARAMS as follows:
typedef struct { /* Current Choices */
unsigned char *encryptionMethodName; /* “rsaSignX931”, “rsaVerifyX931” */
POINTER encryptionParams; /* Null for what is currently available*/
unsigned char *digestMethodName; /* “sha1” */
POINTER digestParams; /* Null for sha1 */
unsigned char *formatMethodName; /*”formatX931” */
POINTER formatParams; /* structure of type A_X931_PARAMS for sha1 */
} B_SIGN_VERIFY_PARAMS;
Argument Values Comments
encryptionMethodName
rsaSignX931
rsaVerifyX931
encryptionParams
Null Pointer for
RSA X9.31
digestMethodName
sha1
digestParams
Null Pointer for
SHA1