Initializes user-supplied memory as the IppsRSAState context for future use.
IppStatus ippsRSAInit(int nBitsN, int nBitsP, IppRSAKeyType flag, IppsRSAState* pCtx);
nBitsN |
Length of the RSA system in bits (that is, the length of the composite RSA modulus n in bits) |
nBitsP |
Length in bits of the largest of two prime factors of the RSA modulus. |
flag |
The flag indicating RSA system for encryption or decryption operation. |
pCtx |
Pointer to the IppsRSAState context being initialized. |
This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsRSAState context. Use the flag == IppRSApublic to initialize RSA context for encryption or flag == IppRSAprivate to initialize RSA context for the decryption operation. Refer to RSA-OAEP Scheme Functions and RSA-SSA Scheme Functions on which flag value to select for the schemes.
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. |
ippStsNotSupportedModeErr |
Indicates an error condition if nBitsN < 32 or nBitsN > 4096. |
ippStsBadArgErr |
Indicates an error condition if nBitsN > nBitsP or illegal flag value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.