RSASSASign_SHA224_PKCSv15

Generates a signature using the v1.5 version of the RSA scheme with the SHA-224 message digest.

Syntax

IppStatus ippsRSASSASign_SHA224_PKCSv15 (const Ipp8u* pMsg, Ipp32u msgLen, Ipp8u* pSign, IppsRSAState* pRSA);

Parameters

pMsg

Pointer to the plain message to be signed.

msgLen

Length of the message. The message can be empty, that is, msgLen==0.

pSign

Pointer to the output signature.

pRSA

Pointer to the properly initialized IppsRSAState context.

Description

This function is declared in the ippcp.h file. The function computes the SHA-224 digest of the input message and generates the signature of the digest using the v1.5 version of the RSA scheme, defined in [PKCS 1.2.1].

Important Note iconImportant

The length of the signature being generated equals the length of the RSA modulus, supplied with the IppsRSAState context. Make sure that pSign points to a buffer of the appropriate length.

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 is NULL.

ippStsContextMatchErr

Indicates an error condition if the RSA context parameter does not match the operation.

ippStsInvalidCryptoKeyErr

Indicates an error condition if the RSA context has not been properly set up for the operation.

ippStsSizeErr

Indicates an error condition if the length of the RSA modulus is too small (see details in [PKCS 1.2.1] ).

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.