All,
Per our discussion during the call the updated proposal is:
Table 37, PKCS #1 RSA OAEP: Encoding parameter sources
|
Source Identifier
|
Value
|
|
CKZ_DATA_SPECIFIED
|
0x00000001UL
|
CK_RSA_PKCS_OAEP_SOURCE_TYPE_PTR is a pointer to a CK_RSA_PKCS_OAEP_SOURCE_TYPE.
¨ CK_RSA_PKCS_OAEP_PARAMS; CK_RSA_PKCS_OAEP_PARAMS_PTR
CK_RSA_PKCS_OAEP_PARAMS is a structure that provides the parameters to the CKM_RSA_PKCS_OAEP mechanism. The structure is defined as follows:
typedef struct CK_RSA_PKCS_OAEP_PARAMS {
CK_MECHANISM_TYPE hashAlg;
CK_RSA_PKCS_MGF_TYPE mgf;
CK_RSA_PKCS_OAEP_SOURCE_TYPE source;
CK_VOID_PTR pSourceData;
CK_ULONG ulSourceDataLen;
} CK_RSA_PKCS_OAEP_PARAMS;
The fields of the structure have the following meanings:
hashAlg mechanism ID of the message digest algorithm used to calculate the digest of the encoding parameter
mgf mask generation function to use on the encoded block
source must be CKZ_DATA_SPECIFIED
pSourceData pointer to the optional label L to be associated with the message; it must be NULL_PTR if the caller wants the default label (the empty string) to be used (as per RFC 8017)
ulSourceDataLen length in bytes of the data pointed to by pSourceData; it must be 0 if the caller wants the default label (the empty string) to be used (as per RFC 8017)
CK_RSA_PKCS_OAEP_PARAMS_PTR is a pointer to a CK_RSA_PKCS_OAEP_PARAMS.
Sincerely,
Jonathan
------------------------------
Jonathan Schulze-Hewett
Information Security Corporation
Oak Park IL
------------------------------