Lines Matching refs:key

92  * attributes that exists only in public key objects
117 * Attributes that exist only in private key objects.
149 * Attributes that exist only in secret key objects.
1185 /* cleanup key data area */
1193 /* cleanup key schedule data area */
1314 * - Build the Public Key object according to the key type. Allocate
1316 * that are required for a certain key type.
1376 /* common key attributes */
1385 /* common public key attribute */
1400 * The following key related attribute types must
1453 * The following key related attribute types must
1454 * be specified according to the key type by
1470 * Modulus length needs to be between min key length and
1471 * max key length.
1590 * The key type specified in the template does not
1591 * match the implied key type based on the mechanism.
1597 /* if the key is generated, LOCAL should be on */
1603 /* Supported key types of the Public Key Object */
1618 * designated place in the public key object.
1643 * designated place in the public key object.
1667 * designated place in the public key object.
1688 * designated place in the public key object.
1883 * - Build the Private Key object according to the key type. Allocate
1885 * that are required for a certain key type.
1960 /* common key attributes */
1969 /* common private key attribute */
1984 * The following key related attribute types must
2054 * The following key related attribute types must
2055 * be specified according to the key type by
2071 * Modulus length needs to be between min key length and
2072 * max key length.
2232 * The key type is not specified in the application's
2233 * template, so we use the implied key type based on
2247 * The key type specified in the template does not
2248 * match the implied key type based on the mechanism.
2255 /* if the key is generated, LOCAL should be on */
2261 * Note that, for mode SOFT_UNWRAP_KEY, key type is not
2274 /* Supported key types of the Private Key Object */
2407 /* CKA_VALUE_BITS is for key gen but not unwrap nor create */
2560 * value for the attribute CKA_VALUE that is required for all the key
2561 * types supported by secret key object.
2603 /* common key attributes */
2624 * The following key related attribute types must
2750 * The key type must be specified in the application's
2762 * The key type is not specified in the application's
2763 * template, so we use the implied key type based on
2770 * The key type specified in the template
2771 * does not match the implied key type based
2792 /* if the key is generated, LOCAL should be on */
2798 * Note that, for mode SOFT_UNWRAP_KEY, key type is not
2812 * key type is optional.
2949 /* arbitrary key length - no length checking */
3005 * determine variable-length key sizes. This case statement
3016 * if key is CKK_RC4, CKK_AES, CKK_GENERIC_SECRET
3020 * if key is CKK_RC4, CKK_AES, CKK_GENERIC_SECRET
3039 /* arbitrary key length - no length checking */
3103 /* arbitrary key length - no length checking */
3161 * No need to check key length value here, it will be
3218 * - Build the Domain Parameter object according to the key type. Allocate
3220 * that are required for a certain key type.
3274 * specified according to the key type by
3348 /* Supported key types of the Domain Parameters Object */
3804 * classes (i.e. public key, private key, secret key, domain parameters,
3872 * Get the value of a requested attribute that is common to all key objects
3873 * (i.e. public key, private key and secret key).
3915 * Rule: All the attributes in the public key object can be revealed.
3958 * This attribute is valid only for RSA public key
4066 * in the list of common key attributes. If the request
4085 * Rule: All the attributes in the private key object can be revealed
4100 * If the following specified attributes for the private key
4336 * in the list of common key attributes. If the request
4355 * Rule: All the attributes in the secret key object can be revealed
4414 * If the specified attribute for the secret key object
4453 * in the list of common key attributes. If the request
4832 * Set the value of an attribute that is common to all key objects
4833 * (i.e. public key, private key and secret key).
4938 * Set the value of a common key attribute.
4945 * If we got this far, then the combination of key type
5047 * Set the value of a common key attribute.
5054 * If we got this far, then the combination of key type
5137 * Set the value of a common key attribute.
5144 * If we got this far, then the combination of key type
5216 soft_get_public_value(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
5228 ((biginteger_t *)OBJ_PUB_RSA_MOD(key))->big_value_len;
5231 ((biginteger_t *)OBJ_PUB_RSA_MOD(key))->big_value_len;
5241 ((biginteger_t *)OBJ_PUB_RSA_MOD(key))->big_value,
5251 ((biginteger_t *)OBJ_PUB_RSA_PUBEXPO(key))->big_value_len;
5254 ((biginteger_t *)OBJ_PUB_RSA_PUBEXPO(key))->big_value_len;
5264 ((biginteger_t *)OBJ_PUB_RSA_PUBEXPO(key))->big_value,
5272 if (key->key_type == CKK_DSA)
5277 ((biginteger_t *)OBJ_PUB_DSA_PRIME(key))->
5281 ((biginteger_t *)OBJ_PUB_DSA_PRIME(key))->
5289 ((biginteger_t *)OBJ_PUB_DH_PRIME(key))->
5293 ((biginteger_t *)OBJ_PUB_DH_PRIME(key))->
5303 if (key->key_type == CKK_DSA)
5305 ((biginteger_t *)OBJ_PUB_DSA_PRIME(key))->big_value,
5309 ((biginteger_t *)OBJ_PUB_DH_PRIME(key))->big_value,
5319 ((biginteger_t *)OBJ_PUB_DSA_SUBPRIME(key))->big_value_len;
5322 ((biginteger_t *)OBJ_PUB_DSA_SUBPRIME(key))->big_value_len;
5332 ((biginteger_t *)OBJ_PUB_DSA_SUBPRIME(key))->big_value,
5339 if (key->key_type == CKK_DSA)
5344 ((biginteger_t *)OBJ_PUB_DSA_BASE(key))->
5348 ((biginteger_t *)OBJ_PUB_DSA_BASE(key))->
5356 ((biginteger_t *)OBJ_PUB_DH_BASE(key))->
5360 ((biginteger_t *)OBJ_PUB_DH_BASE(key))->
5370 if (key->key_type == CKK_DSA)
5372 ((biginteger_t *)OBJ_PUB_DSA_BASE(key))->big_value,
5376 ((biginteger_t *)OBJ_PUB_DH_BASE(key))->big_value,
5382 if (key->key_type == CKK_DSA)
5387 ((biginteger_t *)OBJ_PUB_DSA_VALUE(key))->
5391 ((biginteger_t *)OBJ_PUB_DSA_VALUE(key))->
5399 ((biginteger_t *)OBJ_PUB_DH_VALUE(key))->
5403 ((biginteger_t *)OBJ_PUB_DH_VALUE(key))->
5413 if (key->key_type == CKK_DSA)
5415 ((biginteger_t *)OBJ_PUB_DSA_VALUE(key))->big_value,
5419 ((biginteger_t *)OBJ_PUB_DH_VALUE(key))->big_value,
5430 soft_get_private_value(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
5444 ((biginteger_t *)OBJ_PRI_RSA_MOD(key))->big_value_len;
5447 ((biginteger_t *)OBJ_PRI_RSA_MOD(key))->big_value_len;
5457 ((biginteger_t *)OBJ_PRI_RSA_MOD(key))->big_value,
5467 ((biginteger_t *)OBJ_PRI_RSA_PRIEXPO(key))->big_value_len;
5470 ((biginteger_t *)OBJ_PRI_RSA_PRIEXPO(key))->big_value_len;
5480 ((biginteger_t *)OBJ_PRI_RSA_PRIEXPO(key))->big_value,
5490 ((biginteger_t *)OBJ_PRI_RSA_PRIME1(key))->big_value_len;
5493 ((biginteger_t *)OBJ_PRI_RSA_PRIME1(key))->big_value_len;
5506 ((biginteger_t *)OBJ_PRI_RSA_PRIME1(key))->big_value,
5516 ((biginteger_t *)OBJ_PRI_RSA_PRIME2(key))->big_value_len;
5519 ((biginteger_t *)OBJ_PRI_RSA_PRIME2(key))->big_value_len;
5532 ((biginteger_t *)OBJ_PRI_RSA_PRIME2(key))->big_value,
5542 ((biginteger_t *)OBJ_PRI_RSA_EXPO1(key))->big_value_len;
5545 ((biginteger_t *)OBJ_PRI_RSA_EXPO1(key))->big_value_len;
5558 ((biginteger_t *)OBJ_PRI_RSA_EXPO1(key))->big_value,
5568 ((biginteger_t *)OBJ_PRI_RSA_EXPO2(key))->big_value_len;
5571 ((biginteger_t *)OBJ_PRI_RSA_EXPO2(key))->big_value_len;
5584 ((biginteger_t *)OBJ_PRI_RSA_EXPO2(key))->big_value,
5594 ((biginteger_t *)OBJ_PRI_RSA_COEF(key))->big_value_len;
5597 ((biginteger_t *)OBJ_PRI_RSA_COEF(key))->big_value_len;
5610 ((biginteger_t *)OBJ_PRI_RSA_COEF(key))->big_value,
5618 if (key->key_type == CKK_DSA)
5623 ((biginteger_t *)OBJ_PRI_DSA_PRIME(key))->
5627 ((biginteger_t *)OBJ_PRI_DSA_PRIME(key))->
5635 ((biginteger_t *)OBJ_PRI_DH_PRIME(key))->
5639 ((biginteger_t *)OBJ_PRI_DH_PRIME(key))->
5649 if (key->key_type == CKK_DSA)
5651 ((biginteger_t *)OBJ_PRI_DSA_PRIME(key))->big_value,
5655 ((biginteger_t *)OBJ_PRI_DH_PRIME(key))->big_value,
5665 ((biginteger_t *)OBJ_PRI_DSA_SUBPRIME(key))->big_value_len;
5668 ((biginteger_t *)OBJ_PRI_DSA_SUBPRIME(key))->big_value_len;
5678 ((biginteger_t *)OBJ_PRI_DSA_SUBPRIME(key))->big_value,
5685 if (key->key_type == CKK_DSA)
5690 ((biginteger_t *)OBJ_PRI_DSA_BASE(key))->
5694 ((biginteger_t *)OBJ_PRI_DSA_BASE(key))->
5702 ((biginteger_t *)OBJ_PRI_DH_BASE(key))->
5706 ((biginteger_t *)OBJ_PRI_DH_BASE(key))->
5716 if (key->key_type == CKK_DSA)
5718 ((biginteger_t *)OBJ_PRI_DSA_BASE(key))->big_value,
5722 ((biginteger_t *)OBJ_PRI_DH_BASE(key))->big_value,
5728 if (key->key_type == CKK_DSA) {
5733 ((biginteger_t *)OBJ_PRI_DSA_VALUE(key))->
5737 ((biginteger_t *)OBJ_PRI_DSA_VALUE(key))->
5740 } else if (key->key_type == CKK_DH) {
5745 ((biginteger_t *)OBJ_PRI_DH_VALUE(key))->
5749 ((biginteger_t *)OBJ_PRI_DH_VALUE(key))->
5757 ((biginteger_t *)OBJ_PRI_EC_VALUE(key))->
5761 ((biginteger_t *)OBJ_PRI_EC_VALUE(key))->
5772 if (key->key_type == CKK_DSA) {
5774 ((biginteger_t *)OBJ_PRI_DSA_VALUE(key))->big_value,
5776 } else if (key->key_type == CKK_DH) {
5778 ((biginteger_t *)OBJ_PRI_DH_VALUE(key))->big_value,
5782 ((biginteger_t *)OBJ_PRI_EC_VALUE(key))->big_value,
6386 /* copy the secret key value */
6396 * Copy the pre-expanded key schedule.
6476 * only check if this attribute can belong to public key object
6477 * class if public key object isn't already in the list
6737 /* only secret key has this attribute */
6795 /* only RSA public and private key have this attr */
6810 /* only RSA public key has this attribute */
6823 /* only RSA public and private key have this attr */
6838 /* only RSA private key has this attribute */
6848 /* only RSA private key has this attribute */
6858 /* only RSA private key has this attribute */
6868 /* only RSA private key has this attribute */
6878 /* only RSA private key has this attribute */
6888 /* only RSA private key has this attribute */
6898 /* only Diffie-Hellman private key has this attr */