Lines Matching defs:attr1
431 CK_ATTRIBUTE *attr1, *attr2;
441 attr1 = pk11_attribute_bytype(dsa1, CKA_PRIME);
443 if ((attr1 == NULL) && (attr2 == NULL))
445 else if ((attr1 == NULL) || (attr2 == NULL) ||
446 (attr1->ulValueLen != attr2->ulValueLen) ||
447 !isc_safe_memequal(attr1->pValue, attr2->pValue,
448 attr1->ulValueLen))
451 attr1 = pk11_attribute_bytype(dsa1, CKA_SUBPRIME);
453 if ((attr1 == NULL) && (attr2 == NULL))
455 else if ((attr1 == NULL) || (attr2 == NULL) ||
456 (attr1->ulValueLen != attr2->ulValueLen) ||
457 !isc_safe_memequal(attr1->pValue, attr2->pValue,
458 attr1->ulValueLen))
461 attr1 = pk11_attribute_bytype(dsa1, CKA_BASE);
463 if ((attr1 == NULL) && (attr2 == NULL))
465 else if ((attr1 == NULL) || (attr2 == NULL) ||
466 (attr1->ulValueLen != attr2->ulValueLen) ||
467 !isc_safe_memequal(attr1->pValue, attr2->pValue,
468 attr1->ulValueLen))
471 attr1 = pk11_attribute_bytype(dsa1, CKA_VALUE);
473 if ((attr1 == NULL) && (attr2 == NULL))
475 else if ((attr1 == NULL) || (attr2 == NULL) ||
476 (attr1->ulValueLen != attr2->ulValueLen) ||
477 !isc_safe_memequal(attr1->pValue, attr2->pValue,
478 attr1->ulValueLen))
481 attr1 = pk11_attribute_bytype(dsa1, CKA_VALUE2);
483 if (((attr1 != NULL) || (attr2 != NULL)) &&
484 ((attr1 == NULL) || (attr2 == NULL) ||
485 (attr1->ulValueLen != attr2->ulValueLen) ||
486 !isc_safe_memequal(attr1->pValue, attr2->pValue,
487 attr1->ulValueLen)))