RSAGetKey

Extracts the tag-designated key component from the RSA context.

Syntax

IppStatus ippsRSAGetKey(IppsBigNumState* pBN, IppsRSAKeyTag tag, IppsRSAState* pCtx);

Parameters

pBN

Pointer to the output Big Number context.

tag

The tag of the key component being extracted from.

pCtx

Pointer to the IppsRSAState context.

Description

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:

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.

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.

See Also

Submit feedback on this help topic

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