Displaying 1 result from an estimated 1 matches for "sc_unlock".
Did you mean:
qp_unlock
2002 Jul 20
0
opensc smartcard support does not work
...rect? */
/* FIXME: check 'type' and modify flags accordingly */
! flags = SC_ALGORITHM_RSA_PAD_PKCS1 | SC_ALGORITHM_RSA_HASH_SHA1;
r = sc_pkcs15_compute_signature(p15card, key_obj, flags,
! m, m_len, sigret, RSA_size(rsa));
sc_unlock(card);
if (r < 0) {
error("sc_pkcs15_compute_signature() failed: %s",
sc_strerror(r));
goto err;
}
*siglen = r;
return 1;
err:
--- 194,253 ----
unsigned char *sigret, unsigned int *siglen, R...