Lines Matching defs:attribute

1076  * Token objects are identified by having a CKA_TOKEN attribute B_TRUE.
1077 * Private objects are identified by having a CKA_PRIVATE attribute
1121 * structures, which contain the type of the attribute, a pointer to
1122 * it's value, and the length of its value. The attribute types values
6975 /* return true if attribute is defined to be a PKCS#11 long */
7124 * attribute is set to false.
7145 /* attribute not found in object */
7153 /* return attribute length */
7156 * The size of the attribute is set by the
7172 /* copy attribute value */
7332 * Copy attribute values into a template. RSA values are precomputed.
7428 crypto_object_attribute_t attribute;
7546 attribute.oa_type = DPROV_CKA_CLASS;
7547 attribute.oa_value = (char *)&class;
7548 attribute.oa_value_len = sizeof (ulong_t);
7550 &attribute, 1, B_FALSE);
7557 attribute.oa_type = DPROV_CKA_KEY_TYPE;
7558 attribute.oa_value = (char *)&key_type;
7559 attribute.oa_value_len = sizeof (ulong_t);
7561 &attribute, 1, B_FALSE);
7567 attribute.oa_type = DPROV_CKA_VALUE;
7568 attribute.oa_value = kmem_alloc(key_len, KM_SLEEP);
7569 attribute.oa_value_len = key_len;
7571 if (random_get_pseudo_bytes((uchar_t *)attribute.oa_value,
7573 bzero(attribute.oa_value, key_len);
7574 kmem_free(attribute.oa_value, key_len);
7578 &attribute, 1, B_FALSE);
7580 bzero(attribute.oa_value, key_len);
7581 kmem_free(attribute.oa_value, key_len);
7599 crypto_object_attribute_t attribute;
7689 attribute.oa_type = DPROV_CKA_CLASS;
7690 attribute.oa_value = (char *)&pub_class;
7691 attribute.oa_value_len = sizeof (ulong_t);
7693 &attribute, 1, B_FALSE);
7700 attribute.oa_type = DPROV_CKA_KEY_TYPE;
7701 attribute.oa_value = (char *)&pub_key_type;
7702 attribute.oa_value_len = sizeof (ulong_t);
7704 &attribute, 1, B_FALSE);
7710 attribute.oa_type = DPROV_CKA_MODULUS;
7711 attribute.oa_value = (char *)modulus;
7712 attribute.oa_value_len = sizeof (modulus);
7714 &attribute, 1, B_FALSE);
7720 attribute.oa_type = DPROV_CKA_PUBLIC_EXPONENT;
7721 attribute.oa_value = public_exponent;
7722 attribute.oa_value_len = sizeof (public_exponent);
7724 &attribute, 1, B_FALSE);
7738 attribute.oa_type = DPROV_CKA_CLASS;
7739 attribute.oa_value = (char *)&pri_class;
7740 attribute.oa_value_len = sizeof (ulong_t);
7742 &attribute, 1, B_FALSE);
7749 attribute.oa_type = DPROV_CKA_KEY_TYPE;
7750 attribute.oa_value = (char *)&pri_key_type;
7751 attribute.oa_value_len = sizeof (ulong_t);
7753 &attribute, 1, B_FALSE);
7759 attribute.oa_type = DPROV_CKA_MODULUS;
7760 attribute.oa_value = (char *)modulus;
7761 attribute.oa_value_len = sizeof (modulus);
7763 &attribute, 1, B_FALSE);
7769 attribute.oa_type = DPROV_CKA_PRIVATE_EXPONENT;
7770 attribute.oa_value = (char *)private_exponent;
7771 attribute.oa_value_len = sizeof (private_exponent);
7773 &attribute, 1, B_FALSE);
7933 /* all objects must have an object class attribute */
8786 * There is no attribute to check for; therefore,
8807 * attribute, or by reference, initialize the ck_data and ck_length
8813 * returns the appropriate attribute. For a key by attribute, it returns
8814 * the appropriate attribute. The attributes used are CKA_VALUE to retrieve
8927 * Get the attribute list for the specified asymmetric key.
8979 * Return the index of an attribute of specified type found in
8980 * the specified array of attributes. If the attribute cannot
9012 /* check CKA_PRIVATE attribute value */
9026 /* all objects must have an object class attribute */
9032 /* key objects must have a key type attribute */
9145 /* check CKA_TOKEN attribute value */
9253 int ta_idx; /* template attribute index */
9254 int oa_idx; /* object attribute index */
9257 /* no value for template attribute */
9261 /* find attribute in object */
9266 /* attribute not found in object */
9276 /* application may think attribute is 8 bytes */
9327 /* all objects should have an object class attribute */
9403 /* find attribute in object */
9408 /* attribute already exists, free old value */
9412 /* attribute does not exist, create it */
9417 /* ran out of attribute slots */
9424 /* set object attribute value */
9494 * functions. Returns the value of the specified attribute of specified
9496 * if the length of the attribute does not match the specified length,
9497 * or CRYPTO_ARGUMENTS_BAD if the attribute cannot be found.
9529 /* incorrect attribute value length */
9541 * Get the value of the a boolean attribute from the specified object.
9559 * Get the value of a ulong_t attribute from the specified object.
9570 * Find the specified byte array attribute of specified type in
9573 * attribute cannot be found.
9593 * functions. Returns the value of the specified attribute of specified
9595 * if the length of the attribute does not match the specified length,
9596 * or CRYPTO_ARGUMENTS_BAD if the attribute cannot be found.
9627 /* incorrect attribute value length */
9639 * Get the value of the a boolean attribute from the specified template
9658 * Get the value of a ulong_t attribute from the specified template.
9677 * Find the specified byte array attribute of specified type in
9679 * CRYPTO_ARGUMENTS_BAD if the specified attribute cannot be found.
9698 * functions. Returns the value of the specified attribute of specified
9700 * if the length of the attribute does not match the specified length,
9701 * or CRYPTO_ARGUMENTS_BAD if the attribute cannot be found.
9716 /* incorrect attribute value length */
9725 * Get the value of a ulong_t attribute from the specified key.
9736 * Find the specified byte array attribute of specified type in
9739 * attribute cannot be found.
9774 * Adjust an attribute list by turning 32-bit values into 64-bit values