DLPSignDSA
DLPSignDSA
Performs the DSA digital signature signing operation.
Syntax
IppStatus ippsDLPSignDSA(const IppsBigNumState*
pMsg
, const IppsBigNumState*
pPrivate
, IppsBigNumState*
pSignR
, IppsBigNumState*
pSignS
, IppsDLPState*
pCtx
);
Include Files
ippcp.h
Parameters
- pMsg
- Pointer to the message representationmsgRepto be signed.
- pPrivate
- Pointer to the signer's private keyprivKey.
- pSignR
- Pointer to ther-component of the signature.
- pSignS
- Pointer to thes-component of the signature.
- pCtx
- Pointer to the cryptosystem context.
Description
The function performs the DSA digital signature signing operation provided that the ephemeral signer's key pair (both private and public) was previously computed (generated by
DLPGenKeyPair
or computed by DLPPublicKey
) and then set up into the DLP context by the DLPSetKeyPair
function.Return Values
- ippStsNoErr
- Indicates no error. Any other value indicates an error or warning.
- ippStsNullPtrErr
- Indicates an error condition if any of the specified pointers isNULL.
- ippStsContextMatchErr
- Indicates an error condition if the context parameter does not match the operation.
- ippStsIncompleteContextErr
- Indicates an error condition if the cryptosystem context has not been properly set up.
- ippStsMessageErr
- Indicates an error condition if the value ofmsgRepis greater than the multiplicative subgroup characteristic (q).
- ippStsInvalidPrivateKey
- Indicates an error condition if an illegal value has been assigned toprivKey.
- ippStsRangeErr
- Indicates an error condition if any of the signature components has not enough space.