Extracts the tag-designated key component from the RSA context.
IppStatus ippsRSAGetKey(IppsBigNumState* pBN, IppsRSAKeyTag tag, IppsRSAState* pCtx);
pBN |
Pointer to the output Big Number context. |
tag |
The tag of the key component being extracted from. |
pCtx |
Pointer to the IppsRSAState context. |
This function is declared in the ippcp.h file. The function extracts the tag-designated key component from the *pCtx RSA context and stores it in the specified *pBN Big Number context:
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. |
ippStsBadArgErr |
Indicates an error condition if the key component speicified by tag does not match the RSA context. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsOutOfRangeErr |
Indicates an error condition if the length of the Big Number specified by pBN is too small to be stored as a key component. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.