Displaying 2 results from an estimated 2 matches for "sc_pkcs15_compute_signatur".
Did you mean:
sc_pkcs15_compute_signature
2005 Apr 02
3
OpenSSH and Smartcard
...returning with:
Security status not satisfied card-etoken.c:175:etoken_check_sw:
required access right not granted
card-etoken.c:631:do_compute_signature: returning with: Security status
not satisfied sec.c:53:sc_compute_signature: returning with: Security
status not satisfied pkcs15-sec.c:285:sc_pkcs15_compute_signature:
sc_compute_signature() failed: Security status not satisfied
sc_pkcs15_compute_signature() failed: Security status not satisfied
ssh_rsa_sign: RSA_sign failed: error:00000000:lib(0):func(0):reason(0)
This is happen because openssh never prompt for the pin.
If I use the openssh-agent and ssh-...
2002 Jul 20
0
opensc smartcard support does not work
...0;
r = sc_prkey_op_init(rsa, &key_obj);
! if (r)
! return -1;
/* FIXME: length of sigret correct? */
/* 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;
}...