RSAEncrypt_PKCSv15

Carries out the encryption using the v1.5 version of the PKCS#1 standard.

Syntax

IppStatus ippsRSAEncrypt_PKCSv15(const Ipp8u* pSrc, Ipp32u srcLen, const Ipp8u* pRandPS, Ipp8u* pDst, IppsRSAState* pRSA);

Parameters

pSrc

Pointer to the message to be encrypted.

srcLen

Length (in bytes) of the message.

pRandPS

Pointer to the padding string of an appropriate length.

pDst

Pointer to the output ciphertext string.

pRSA

Pointer to the properly initialized IppsRSAState context.

Description

This function is declared in the ippcp.h file. The function carries out the RSA encryption using the public key according to the v1.5 version of the PKCS#1 standard, defined in [PKCS 1.2.1].

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 n of the RSA modulus is too small in comparison with the length of plaintext, that is, srcLen > n - 11.

See Also

Submit feedback on this help topic

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