RSA Security 5 Projection Television User Manual


 
Chapter 2 Algorithm Info Types 237
AI_SignVerify
If
formatMethodName
is “formatX931”,
formatParams
must be given a pointer to a
structure of type
A_X931_PARAMS:
Set the arguments for
A_X931_PARAMS as follows:
Format of info returned by B_GetAlgorithmInfo:
a pointer to a B_SIGN_VERIFY_PARAMS structure (see above).
formatMethodName
formatX931
Signature is output as the binary
concatenation of r with s.
formatX931PKCS
Signature is output in PKCS #1 style DER
encoding.
formatX931X957
Signature is output in X9.57 (DSA) DER
format.
formatParams
Pointer to
structure of
type A_X931_PARAMS
Use with rsaSignX931 and rsaVerifyX931.
typedef struct {
unsigned int blockLen;
unsigned int oidNum;
ITEM OID;
} A_X931_PARAMS;
Argument Values Comments
blockLen
Number of bytes in
final X.931
signature
This is the number of bytes that the binary
concatenation of r with s requires.
oidNum
The object
identifier for the
SHA1 hash
algorithm
Currently always equals 3 (SHA) for X9.31.
OID
Object identifier
to use for BER
encoding
Currently only used when
“formatX931PKCS” is specified in the
formatMet hodNa me
.
PKCS #1 style BER/DER encoding is used.
Argument Values Comments