RSAVerify_PSS
RSAVerify_PSS
Carries out the RSA-SSA signature verification scheme.
Syntax
IppStatus ippsRSAVerify_PSS
(
const Ipp8u*
pMsg
, int
msgLen
, const Ipp8u*
pSign
, int*
pIsSignValid
, const IppsRSAPublicKeyState*
pKey
, IppHashAlgId
hashAlg
, Ipp8u*
pBuffer
);
IppStatus ippsRSAVerify_PSS_rmf
(
const Ipp8u*
pMsg
, int
msgLen
, const Ipp8u*
pSign
, int*
pIsSignValid
, const IppsRSAPublicKeyState*
pKey
, const IppsHashMethod*
pMethod
, Ipp8u*
pBuffer
);
Include Files
ippcp.h
Parameters
- pMsg
- Pointer to the octet message that has been signed.
- msgLen
- Length in octets of the*pMsgmessage.
- pSign
- Pointer to the octet signature string to be verified.
- pIsSignValid
- Pointer to the verification result.
- pKey
- Pointer to the properly initializedIppsRSAPublicKeyStatecontext.
- hashAlg
- Identifier of the hash algorithm. For details, see table Supported Hash Algorithms.
- pMethod
- Pointer to the hash method. For details, see HashMethod functions.
- pBuffer
- Pointer to the scratch buffer of size not less than returned by theRSA_GetBufferSizePublicKeyfunction.
Description
The function carries out the RSASSA-PSS signature verification scheme defined in [PKCS 1.2.1].
RSAVerify_PSS
verifies the signature generated by the RSASign_PSS function called with the same hashAlg
or pMethod
parameter.This function has a
reduced memory footprint
version. To learn more, see Reduced Memory Footprint Functions.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 public key is not set up.
- ippsStsNotSupportedModeErr
- Indicates an error condition if thehashAlgparameter does not match any value ofIppHashAlgIdlisted in table Supported Hash Algorithms.