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

 


Help: OASIS Mailing Lists Help | MarkMail Help

kmip message

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


Subject: Re: [kmip] Re: PKCS#11 Function enumeration question


Except for 9.1.3.2.20 Link Type Enumeration for some reason, starts at

Certificate Link 00000101 


Mark



From: Anthony Berglas <anthony.berglas@cryptsoft.com>
To: Mark Joseph <mark@p6r.com>
Cc: OASIS KMIP Technical Committee <kmip@lists.oasis-open.org>
Sent: 11/21/2018 1:19 AM
Subject: [kmip] Re: PKCS#11 Function enumeration question

In KMIP, all enumerations start from 1.  

(C's counting from 0 is the work of the devil, a disease that has infected other languages and caused much chaos.  But I digress...)

On Wed, Nov 21, 2018 at 7:05 PM Mark Joseph <mark@p6r.com> wrote:
From Section 6.1.35 PKCS#11 KMIP 2.0 draft 6

PKCS#11 Function   --  The function to perform. An Enumeration for PKCS#11 defined functions or an Integer for vendor defined function..


Section CK_FUNCTION_LIST; CK_FUNCTION_LIST_PTR; CK_FUNCTION_LIST_PTR_PTR

There is the function list table defined.

typedef struct CK_FUNCTION_LIST {

  CK_VERSION version;

  CK_C_Initialize C_Initialize;

  CK_C_Finalize C_Finalize;

  CK_C_GetInfo C_GetInfo;

  CK_C_GetFunctionList C_GetFunctionList;

  CK_C_GetSlotList C_GetSlotList;

  CK_C_GetSlotInfo C_GetSlotInfo;

  CK_C_GetTokenInfo C_GetTokenInfo;

  CK_C_GetMechanismList C_GetMechanismList;

  CK_C_GetMechanismInfo C_GetMechanismInfo;

  CK_C_InitToken C_InitToken;

  CK_C_InitPIN C_InitPIN;

  CK_C_SetPIN C_SetPIN;


etc...

Is this list zero based or start at one?    The enumeration value for "C_Initialize" is 1 or 0 ?    


Best,
Mark Joseph
P6R, Inc
408-205-0361


--
Anthony Berglas Ph.D.
Principal Engineer
Anthony.Berglas@Cryptsoft.com



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