RSAOAEPEncrypt_SHA1

Carries out the RSA-OAEP encryption scheme using SHA-1 hash algorithm.

Syntax

IppStatus ippsRSAOAEPEncrypt_SHA1(const Ipp8u* pSrc, int srcLen, const Ipp8u* pLabel, int labLen, const Ipp8u* pSeed, Ipp8u* pDst, IppsRSAState* pCtx);

Parameters

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, where hashLen is the length (in octets) of the hash message digest.

pDst

Pointer to the output octet ciphertext string.

pCtx

Pointer to the properly initialized IppsRSAState context.

Description

This function is declared in the ippcp.h file. The function uses SHA-1 hash function and SHA-1-based MGF implemented in Intel IPP to carry out the RSA-OAEP encryption scheme and thus is a specific form of the general RSAOAEPEncrypt function.

Return Values

The function may return any of the values that the general RSAOAEPEncrypt function returns.


Submit feedback on this help topic

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