![]() | Cryptographic Token Interface Standard |
PKCS#11 |
DSA domain parameter objects (object class CKO_DOMAIN_PARAMETERS, key type CKK_DSA) hold DSA domain parameters. The following table defines the DSA domain parameter object attributes, in addition to the common attributes defined for this object class:
Table 219, DSA Domain Parameter Object Attributes
Attribute | Data type | Meaning |
CKA_PRIME1,4 | Big integer | Prime p (512 to 1024 bits, in steps of 64 bits) |
CKA_SUBPRIME1,4 | Big integer | Subprime q (160 bits) |
CKA_BASE1,4 | Big integer | Base g |
CKA_PRIME_BITS2,3 | CK_ULONG | Length of the prime value. |
- Refer to Table 15 for footnotes
The CKA_PRIME, CKA_SUBPRIME and CKA_BASE attribute values are collectively the "DSA domain parameters". See FIPS PUB 186-2 for more information on DSA domain parameters.
The following is a sample template for creating a DSA domain parameter object:
CK_OBJECT_CLASS class = CKO_DOMAIN_PARAMETERS; CK_KEY_TYPE keyType = CKK_DSA; CK_UTF8CHAR label[] = "A DSA domain parameter object"; CK_BYTE prime[] = {...}; CK_BYTE subprime[] = {...}; CK_BYTE base[] = {...}; CK_BBOOL true = CK_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)-1}, {CKA_PRIME, prime, sizeof(prime)}, {CKA_SUBPRIME, subprime, sizeof(subprime)}, {CKA_BASE, base, sizeof(base)}, };