Lines Matching full:attribs
439 CK_ATTRIBUTE filter[], CK_ATTRIBUTE attribs[3],
462 /* XXX 3 attributes in attribs[] */
464 attribs[i].pValue = NULL;
465 attribs[i].ulValueLen = 0;
471 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
477 if (attribs[0].ulValueLen == 0 ||
478 attribs[1].ulValueLen == 0 ||
479 attribs[2].ulValueLen == 0) {
484 attribs[i].pValue = xmalloc(attribs[i].ulValueLen);
490 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
493 } else if (attribs[1].type == CKA_MODULUS ) {
497 rsa->n = BN_bin2bn(attribs[1].pValue,
498 attribs[1].ulValueLen, NULL);
499 rsa->e = BN_bin2bn(attribs[2].pValue,
500 attribs[2].ulValueLen, NULL);
503 cp = attribs[2].pValue;
506 } else if (d2i_X509(&x509, &cp, attribs[2].ulValueLen)
521 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {
540 free(attribs[i].pValue);