OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

pkcs11 message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [pkcs11]: CKM_PKCS5_PBKD2_PARAMS struct: password length


On 04/17/2013 06:28 PM, Tim Hudson wrote:
On 18/04/2013 10:09 AM, Andrey Jivsov wrote:
The definition of NULL in the C99 language standard defines NULL to be
equal the numeric value 0.
And that doesn't help - what you are looking for is that a pointer value
cannot have the value 0 - and C99 does not define that - the pointer

I have difficulty locating the standard, but the interpretations of the C standard are abundant to at least strongly suggest to use NULL==0.

http://c-faq.com/null/

5.5 talks about defining NULL to 0 even on machines that use non-zero bit patters to represent the NULL pointer.


passed incorrectly in ulPasswordLen can be zero and can still be valid.

It's likely that that these systems will not have PKCS#11 libraries running on them.

Re-reading C99 6.3.2.2 should make that clearer (although that is an
unusual use of the word 'clearer').

However this is diverging from the main topic ...

Tim.


---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]