Home | History | Annotate | Download | only in openssh

Lines Matching full:attribs

404 	CK_ATTRIBUTE		attribs[] = {
422 /* XXX 3 attributes in attribs[] */
424 attribs[i].pValue = NULL;
425 attribs[i].ulValueLen = 0;
431 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
437 if (attribs[0].ulValueLen == 0 ||
438 attribs[1].ulValueLen == 0 ||
439 attribs[2].ulValueLen == 0) {
444 attribs[i].pValue = xmalloc(attribs[i].ulValueLen);
446 if ((rv = f->C_GetAttributeValue(session, obj, attribs, 3))
452 rsa->n = BN_bin2bn(attribs[1].pValue,
453 attribs[1].ulValueLen, NULL);
454 rsa->e = BN_bin2bn(attribs[2].pValue,
455 attribs[2].ulValueLen, NULL);
457 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {
473 xfree(attribs[i].pValue);