Lines Matching defs:attribs
437 CK_ATTRIBUTE filter[], CK_ATTRIBUTE attribs[3],
460 /* XXX 3 attributes in attribs[] */
462 attribs[i].pValue = NULL;
463 attribs[i].ulValueLen = 0;
469 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
475 if (attribs[0].ulValueLen == 0 ||
476 attribs[1].ulValueLen == 0 ||
477 attribs[2].ulValueLen == 0) {
482 attribs[i].pValue = xmalloc(attribs[i].ulValueLen);
488 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
491 } else if (attribs[1].type == CKA_MODULUS ) {
495 rsa->n = BN_bin2bn(attribs[1].pValue,
496 attribs[1].ulValueLen, NULL);
497 rsa->e = BN_bin2bn(attribs[2].pValue,
498 attribs[2].ulValueLen, NULL);
501 cp = attribs[2].pValue;
504 } else if (d2i_X509(&x509, &cp, attribs[2].ulValueLen)
519 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {
538 free(attribs[i].pValue);