![](/images/new-backgrounds/1225625/225625317x1.webp)
AI_PKCS_OAEP_RSAPublic
a pointer to an A_PKCS_OAEP_PARAMS structure:
typedef struct { |
|
unsigned char* | hashFunc; |
ITEM | hashFuncParams; |
unsigned char* | maskGenFunc; |
ITEM | maskGenFuncParams; |
unsigned char* | maskGenFuncUnderlyingAlg; |
ITEM | maskGenFuncUnderlyingAlgParams; |
unsigned char* | pSourceFunc; |
ITEM | pSourceParams; |
}A_PKCS_OAEP_PARAMS;
The parameters are as follows:
hashFunc determines the digest function. Currently, it may contain a NULL_PTR or a pointer to the
maskGenFunc determines the mask generator function. Currently, it may contain a NULL_PTR or a pointer to the
maskGenFuncUnderlyingAlg may contain a NULL_PTR or a pointer to the
pSourceFunc is the method for determining the PKCS #1 v2.0 OAEP parameter, P. pSourceFunc may contain a NULL_PTR or a pointer to the
If pSourceFunc is “specifiedParameters” and if pSourceParams.len is 0, then P is assumed to be empty. pSourceParams may also be initialized to the caller's data as in this example:
pSourceParams.len = sizeof(dataObject); pSourceParams.data = &dataObject;
hashFuncParams, maskGenFuncParams, and maskGenFuncUnderlyingAlgParams are available to provide for future growth. The caller should initialize these parameters as ITEM types as follows:
C h a p t e r 2 A l g o r i t h m I n f o Ty p e s | 149 |