<div dir="ltr">On Wed, Sep 24, 2014 at 2:20 PM, Petr Spacek <span dir="ltr"><<a href="mailto:pspacek@redhat.com" target="_blank">pspacek@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm working on a patch with PKCS #1 RSA OAEP support and I have a question regarding "source" member in CK_RSA_PKCS_OAEP_PARAMS structure.<br>
<br>
IMHO CK_RSA_PKCS_OAEP_PARAMS.source should always be set to CKZ_DATA_SPECIFIED, i.e. to 0x00000001.<br>
<br>
Is this correct (I'm looking into pkcs-11v2-30m1-d7.doc page 26)?<br>
<br>
I'm asking because current code ignores this value completely so I'm trying to determine if it is a bug or intentional decision.<br>
<br>
Thank you for clarification!</blockquote><div><br></div><div>Yes, that is correct. I believe that this field was not checked because the parameter is not used by the function. If we want to be strict then source == CKZ_DATA_SPECIFIED, pSourceData == NULL_PTR, and ulSourceDataLen == 0 must be set.</div><div><br></div><div> // Rickard </div></div><br></div></div>