Gets the size of the IppsRSAState context.
IppStatus ippsRSAGetSize(int nBitsN, int nBitsP, IppRSAKeyType flag, int* pSize);
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. |
pSize |
Pointer to the IppsRSAState context size in bytes. |
This function is declared in the ippcp.h file. The function gets the IppsRSAState context size in bytes and stores it in *pSize. Use the flag == IppRSApublic to establish RSA for encryption or flag == IppRSAprivate to establish RSA 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 (nBitsP ≥ nBitsN) or (2*nBitsP < nBitsN) or flag value is illegal. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.