Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page54/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   50   51   52   53   54   55   56   57   ...   196
v201-95
pkcs11-base-v2.40-cos01
Attribute

Data type

Meaning

CKA_SUBJECT8

Byte array

DER-encoding of certificate subject name (default empty)

CKA_SENSITIVE8 (see below)

CK_BBOOL

TRUE if key is sensitive9

CKA_DECRYPT8

CK_BBOOL

TRUE if key supports decryption9

CKA_SIGN8

CK_BBOOL

TRUE if key supports signatures where the signature is an appendix to the data9

CKA_SIGN_RECOVER8

CK_BBOOL

TRUE if key supports signatures where the data can be recovered from the signature9

CKA_UNWRAP8

CK_BBOOL

TRUE if key supports unwrapping (i.e., can be used to unwrap other keys)9

CKA_EXTRACTABLE8 (see below)

CK_BBOOL

TRUE if key is extractable9

CKA_ALWAYS_SENSITIVE2,4,6

CK_BBOOL

TRUE if key has always had the CKA_SENSITIVE attribute set to TRUE

CKA_NEVER_EXTRACTABLE2,4,6

CK_BBOOL

TRUE if key has never had the CKA_EXTRACTABLE attribute set to TRUE

After an object is created, the CKA_SENSITIVE attribute may be changed, but only to the value TRUE. Similarly, after an object is created, the CKA_EXTRACTABLE attribute may be changed, but only to the value FALSE. Attempts to make other changes to the values of these attributes should return the error code CKR_ATTRIBUTE_READ_ONLY.


If the CKA_SENSITIVE attribute is TRUE, or if the CKA_EXTRACTABLE attribute is FALSE, then certain attributes of the private key cannot be revealed in plaintext outside the token. Which attributes these are is specified for each type of private key in the attribute table in the section describing that type of key.
If the CKA_EXTRACTABLE attribute is FALSE, then the key cannot be wrapped.
It is intended in the interests of interoperability that the subject name and key identifier for a private key will be the same as those for the corresponding certificate and public key. However, this is not enforced by Cryptoki, and it is not required that the certificate and public key also be stored on the token.

Download 360.55 Kb.

Share with your friends:
1   ...   50   51   52   53   54   55   56   57   ...   196




The database is protected by copyright ©ininet.org 2024
send message

    Main page