Cryptoki: a cryptographic Token Interface



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

Data type

Meaning

CKA_PRIME1,3,6

Big integer

Prime p (512 to 1024 bits, in steps of 64 bits)

CKA_SUBPRIME1,3,6

Big integer

Subprime q (160 bits)

CKA_BASE1,3,6

Big integer

Base g (512 to 1024 bits, in steps of 64 bits)

CKA_VALUE1,4,6

Big integer

Public value y

The CKA_PRIME, CKA_SUBPRIME and CKA_BASE attribute values are collectively the “KEA parameters”.


The following is a sample template for creating a KEA public key object:
CK_OBJECT_CLASS class = CKO_PUBLIC_KEY;
CK_KEY_TYPE keyType = CKK_KEA;
CK_CHAR label[] = “A KEA public key object”;
CK_BYTE prime[] = {...};
CK_BYTE subprime[] = {...};
CK_BYTE base[] = {...};
CK_BYTE value[] = {...};
CK_BBOOL true = TRUE;
CK_ATTRIBUTE template[] = {
{CKA_CLASS, &class, sizeof(class)},
{CKA_KEY_TYPE, &keyType, sizeof(keyType)},
{CKA_TOKEN, &true, sizeof(true)},
{CKA_LABEL, label, sizeof(label)},
{CKA_PRIME, prime, sizeof(prime)},
{CKA_SUBPRIME, subprime, sizeof(subprime)},
{CKA_BASE, base, sizeof(base)},
{CKA_VALUE, value, sizeof(value)}
};

9.7. Private key objects


Private key objects (object class CKO_PRIVATE_KEY) hold private keys. This version of Cryptoki recognizes five types of private key: RSA, DSA, ECDSA, Diffie-Hellman, and KEA. The following table defines the attributes common to all private keys, in addition to the common attributes listed in Table 14 and Table 19:
Table 26, Common Private Key Attributes


Download 360.55 Kb.

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




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

    Main page