< prev index next >

src/jdk.crypto.cryptoki/share/native/libj2pkcs11/pkcs11t.h

Print this page




 531 #define CKA_HAS_RESET          0x00000302
 532 
 533 /* The following attributes are new for v2.20 */
 534 #define CKA_PIXEL_X                     0x00000400
 535 #define CKA_PIXEL_Y                     0x00000401
 536 #define CKA_RESOLUTION                  0x00000402
 537 #define CKA_CHAR_ROWS                   0x00000403
 538 #define CKA_CHAR_COLUMNS                0x00000404
 539 #define CKA_COLOR                       0x00000405
 540 #define CKA_BITS_PER_PIXEL              0x00000406
 541 #define CKA_CHAR_SETS                   0x00000480
 542 #define CKA_ENCODING_METHODS            0x00000481
 543 #define CKA_MIME_TYPES                  0x00000482
 544 #define CKA_MECHANISM_TYPE              0x00000500
 545 #define CKA_REQUIRED_CMS_ATTRIBUTES     0x00000501
 546 #define CKA_DEFAULT_CMS_ATTRIBUTES      0x00000502
 547 #define CKA_SUPPORTED_CMS_ATTRIBUTES    0x00000503
 548 #define CKA_ALLOWED_MECHANISMS          (CKF_ARRAY_ATTRIBUTE|0x00000600)
 549 
 550 #define CKA_VENDOR_DEFINED     0x80000000

 551 
 552 
 553 /* CK_ATTRIBUTE is a structure that includes the type, length
 554  * and value of an attribute */
 555 typedef struct CK_ATTRIBUTE {
 556   CK_ATTRIBUTE_TYPE type;
 557   CK_VOID_PTR       pValue;
 558 
 559   /* ulValueLen went from CK_USHORT to CK_ULONG for v2.0 */
 560   CK_ULONG          ulValueLen;  /* in bytes */
 561 } CK_ATTRIBUTE;
 562 
 563 typedef CK_ATTRIBUTE CK_PTR CK_ATTRIBUTE_PTR;
 564 
 565 
 566 /* CK_DATE is a structure that defines a date */
 567 typedef struct CK_DATE{
 568   CK_CHAR       year[4];   /* the year ("1900" - "9999") */
 569   CK_CHAR       month[2];  /* the month ("01" - "12") */
 570   CK_CHAR       day[2];    /* the day   ("01" - "31") */




 531 #define CKA_HAS_RESET          0x00000302
 532 
 533 /* The following attributes are new for v2.20 */
 534 #define CKA_PIXEL_X                     0x00000400
 535 #define CKA_PIXEL_Y                     0x00000401
 536 #define CKA_RESOLUTION                  0x00000402
 537 #define CKA_CHAR_ROWS                   0x00000403
 538 #define CKA_CHAR_COLUMNS                0x00000404
 539 #define CKA_COLOR                       0x00000405
 540 #define CKA_BITS_PER_PIXEL              0x00000406
 541 #define CKA_CHAR_SETS                   0x00000480
 542 #define CKA_ENCODING_METHODS            0x00000481
 543 #define CKA_MIME_TYPES                  0x00000482
 544 #define CKA_MECHANISM_TYPE              0x00000500
 545 #define CKA_REQUIRED_CMS_ATTRIBUTES     0x00000501
 546 #define CKA_DEFAULT_CMS_ATTRIBUTES      0x00000502
 547 #define CKA_SUPPORTED_CMS_ATTRIBUTES    0x00000503
 548 #define CKA_ALLOWED_MECHANISMS          (CKF_ARRAY_ATTRIBUTE|0x00000600)
 549 
 550 #define CKA_VENDOR_DEFINED     0x80000000
 551 #define CKA_NETSCAPE_DB        0xD5A0DB00
 552 
 553 
 554 /* CK_ATTRIBUTE is a structure that includes the type, length
 555  * and value of an attribute */
 556 typedef struct CK_ATTRIBUTE {
 557   CK_ATTRIBUTE_TYPE type;
 558   CK_VOID_PTR       pValue;
 559 
 560   /* ulValueLen went from CK_USHORT to CK_ULONG for v2.0 */
 561   CK_ULONG          ulValueLen;  /* in bytes */
 562 } CK_ATTRIBUTE;
 563 
 564 typedef CK_ATTRIBUTE CK_PTR CK_ATTRIBUTE_PTR;
 565 
 566 
 567 /* CK_DATE is a structure that defines a date */
 568 typedef struct CK_DATE{
 569   CK_CHAR       year[4];   /* the year ("1900" - "9999") */
 570   CK_CHAR       month[2];  /* the month ("01" - "12") */
 571   CK_CHAR       day[2];    /* the day   ("01" - "31") */


< prev index next >