Carries out the RSA-OAEP decryption scheme.
IppStatus ippsRSAOAEPDecrypt(const Ipp8u* pSrc, const Ipp8u* pLabel, int labLen, Ipp8u* pDst, int* pDstLen, IppsRSAState* pCtx, IppHash hushFunc, int hashLen, IppMGF mgfFunc);
pSrc |
Pointer to the octet ciphertext to be decrypted. |
pLabel |
Pointer to the optional label to be associated with the message. |
labLen |
Length of the optional label. |
pDst |
Pointer to the output octet plaintext message. |
pDstLen |
Pointer to the length of the decrypted message. |
pCtx |
Pointer to the properly initialized IppsRSAState context. |
hashFunc |
Hash function, which meets the General Definition of a Hash Function. |
hashLen |
Length of the hash function output, in octets. |
mgfFunc |
Mask generation function (MGF), which meets the definition provided in section User's Implementation of a Mask Generation Function. |
This function is declared in the ippcp.h file. The function carries out the RSA-OAEP decryption scheme defined in [PKCS 1.2.1].
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 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. |
ippStsLengthErr |
Indicates an error condition
if the input length parameters do not meet any of the following
conditions:
labLen ≥ 0, hashLen > 0, 2*hashLen + 2 ≥ N, where N is the length of the RSA modulus in octets. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.