Lines Matching defs:type

217 soft_lookup_attr(CK_ATTRIBUTE_TYPE type)
229 if (type > attr_map[middle]) {
235 if (type == attr_map[middle]) {
240 if (type < attr_map[middle]) {
273 switch (template[i].type) {
289 switch (template[i].type) {
310 rv = soft_lookup_attr(template[i].type);
427 * attribute (with simple byte array type).
458 attrp->attr.type = template->type;
490 CK_CERTIFICATE_TYPE type)
502 if (type == CKC_X_509) {
512 } else if (type == CKC_X_509_ATTR_CERT) {
523 /* wrong certificate type */
552 attrp->attr.type = old_attrp->attr.type;
584 * (if the specified attribute type is found), and copy it to a template.
585 * Note the type of the attribute to be copied is specified by the template,
594 CK_ATTRIBUTE_TYPE type = template->type;
599 if (type == extra_attr->attr.type) {
644 * if the specified attribute type is found. Otherwise, just add it to
648 set_extra_attr_to_object(soft_object_t *object_p, CK_ATTRIBUTE_TYPE type,
657 if (type == extra_attr->attr.type) {
768 * Copy the boolean data type attribute value from an object for the
805 * Set the boolean data type attribute value in the object.
822 * Copy the CK_ULONG data type attribute value from an object to the
855 * Copy the CK_ULONG data type attribute value from a template to the
948 dest->type = src->type;
952 dest->type = src->type;
1055 * attributes associated with the type (i.e. class) of the object. Also,
1056 * release the storage allocated to the type of the object.
1257 switch (template->type) {
1306 * invalid attribute type, invalid attribute value, etc., return
1309 * attributes that have boolean type.
1311 * attribute that has byte array type. Link attribute_info structs
1314 * - Build the Public Key object according to the key type. Allocate
1316 * that are required for a certain key type.
1374 switch (template[i].type) {
1389 * value with byte array type, and add it to
1454 * be specified according to the key type by
1590 * The key type specified in the template does not
1591 * match the implied key type based on the mechanism.
1875 * invalid attribute type, invalid attribute value, etc., return
1878 * attributes that have boolean type.
1880 * attribute that has byte array type. Link attribute_info structs
1883 * - Build the Private Key object according to the key type. Allocate
1885 * that are required for a certain key type.
1959 switch (template[i].type) {
1973 * value with byte array type, and add it to
2055 * be specified according to the key type by
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.
2261 * Note that, for mode SOFT_UNWRAP_KEY, key type is not
2551 * invalid attribute type, invalid attribute value, etc., return
2554 * attributes that have boolean type.
2556 * attribute that has byte array type. Link attribute_info structs
2601 switch (template[i].type) {
2613 * value with byte array type, and add it to
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
2798 * Note that, for mode SOFT_UNWRAP_KEY, key type is not
2812 * key type is optional.
3215 * invalid attribute type, invalid attribute value, etc., return
3218 * - Build the Domain Parameter object according to the key type. Allocate
3220 * that are required for a certain key type.
3257 switch (template[i].type) {
3274 * specified according to the key type by
3445 * invalid attribute type, invalid attribute value, etc., return
3461 /* certificate type defaults to the value given as a parameter */
3468 * Look for the certificate type attribute and do some
3473 switch (template[i].type) {
3490 /* The certificate type MUST be specified */
3521 switch (template[i].type) {
3562 switch (template[i].type) {
3658 /* Validate the attribute type in the template. */
3723 /* Validate the attribute type in the template. */
3814 switch (template->type) {
3879 switch (template->type) {
3889 * The above extra attributes have byte array type.
3925 switch (template->type) {
3930 * The above extra attributes have byte array type.
4107 switch (template->type) {
4120 switch (template->type) {
4125 * The above extra attributes have byte array type.
4368 switch (template->type) {
4434 if (template->type == CKA_VALUE_LEN) {
4482 switch (template->type) {
4589 * return CKR_ATTRIBUTE_TYPE_INVALID if the requested type
4599 switch (template->type) {
4647 * If we got this far, then the combination of certificate type
4659 switch (template->type) {
4681 template->type, template));
4688 template->type, template));
4694 template->type, template));
4705 * If we got this far, then the combination of certificate type
4766 switch (template->type) {
4840 switch (template->type) {
4892 switch (template->type) {
4945 * If we got this far, then the combination of key type
4964 switch (template->type) {
5054 * If we got this far, then the combination of key type
5072 switch (template->type) {
5144 * If we got this far, then the combination of key type
5185 switch (template->type) {
5216 soft_get_public_value(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
5220 switch (type) {
5430 soft_get_private_value(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
5436 switch (type) {
6445 if (pTemplate[i].type == CKA_CLASS) {
6481 if (pTemplate[i].type == PUB_KEY_ATTRS[j]) {
6492 if (pTemplate[i].type == PRIV_KEY_ATTRS[j]) {
6503 if (pTemplate[i].type == SECRET_KEY_ATTRS[j]) {
6514 if (pTemplate[i].type == DOMAIN_ATTRS[j]) {
6525 if (pTemplate[i].type == HARDWARE_ATTRS[j]) {
6536 if (pTemplate[i].type == CERT_ATTRS[j]) {
6588 switch (tmpl_attr->type) {
6730 obj_attr = get_extra_attr(tmpl_attr->type, obj);
7114 * The attribute type is valid, and its value
7155 get_extra_attr(CK_ATTRIBUTE_TYPE type, soft_object_t *obj)
7161 if (tmp->attr.type == type) {