RSA_GetBufferSizePublicKey, RSA_GetBufferSizePrivateKey
RSA_GetBufferSizePublicKey, RSA_GetBufferSizePrivateKey
Get the size of a temporary scratch buffer for future use in RSA operations.
Syntax
IppStatus ippsRSA_GetBufferSizePublicKey(int*
pBufferSize
, const IppsRSAPublicKeyState*
pKey
);
IppStatus ippsRSA_GetBufferSizePrivateKey(int*
pBufferSize
, const IppsRSAPrivateKeyState*
pKey
);
Include Files
ippcp.h
Parameters
- pBufferSize
- Pointer to the size of a temporary buffer.
- pKey
- Pointer to the RSA key context.
Description
These functions get the size of a temporary buffer for future use in public- or private-key RSA operations, respectively.
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 isNULL.
- ippStsContextMatchErr
- Indicates an error condition if any of the context parameters does not match the operation.
- ippStsIncompleteContextErr
- ForRSA_GetBufferSizePublicKey, indicates an error condition if the public key is not set up.ForRSA_GetBufferSizePrivateKeyType1, indicates an error condition if the type 1 private key is not set up.You can set up the public key or type 1 private key in a call toRSA_SetPublicKeyorRSA_SetPrivateKeyType1, respectively. For theRSA_GetBufferSizePrivateKeyType2function, it suffices to initialize the context for the key in a call toRSA_InitPrivateKeyType2.