Carries out the RSA-OAEP encryption scheme.
IppStatus ippsRSAOAEPEncrypt(const Ipp8u* pSrc, int srcLen, const Ipp8u* pLabel, int labLen, const Ipp8u* pSeed, Ipp8u* pDst, IppsRSAState* pCtx, IppHash hushFunc, int hashLen, IppMGF mgfFunc);
pSrc |
Pointer to the octet message to be encrypted. |
srcLen |
Length of the message to be encrypted. |
pLabel |
Pointer to the optional label to be associated with the message. |
labLen |
Length of the optional label. |
pSeed |
Pointer to the random octet string of length hashLen. |
pDst |
Pointer to the output octet ciphertext string. |
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 encryption 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: srcLen > 0 srcLen > N - 2*hashLen - 2, where N is the length of the RSA modulus in octets, labLen ≥ 0, hashLen > 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.