Lines Matching defs:resp
188 sshsk_ecdsa_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
213 resp->public_key, resp->public_key_len)) != 0) {
257 sshsk_ed25519_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
263 if (resp->public_key_len != ED25519_PK_SZ) {
264 error_f("invalid size: %zu", resp->public_key_len);
278 memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ);
290 struct sk_enroll_response *resp, struct sshkey **keyp)
298 if (resp->public_key == NULL || resp->key_handle == NULL) {
306 if ((r = sshsk_ecdsa_assemble(resp, &key)) != 0)
311 if ((r = sshsk_ed25519_assemble(resp, &key)) != 0)
331 if ((r = sshbuf_put(key->sk_key_handle, resp->key_handle,
332 resp->key_handle_len)) != 0) {
435 fill_attestation_blob(const struct sk_enroll_response *resp,
444 resp->attestation_cert, resp->attestation_cert_len)) != 0 ||
446 resp->signature, resp->signature_len)) != 0 ||
448 resp->authdata, resp->authdata_len)) != 0 ||
469 struct sk_enroll_response *resp = NULL;
532 flags, pin, opts, &resp)) != 0) {
538 if ((r = sshsk_key_from_response(alg, application, resp->flags,
539 resp, &key)) != 0)
543 if ((r = fill_attestation_blob(resp, attest)) != 0)
554 sshsk_free_enroll_response(resp);
561 sshsk_ecdsa_sig(struct sk_sign_response *resp, struct sshbuf *sig)
567 if (resp->sig_r == NULL || resp->sig_s == NULL) {
578 resp->sig_r, resp->sig_r_len)) != 0 ||
580 resp->sig_s, resp->sig_s_len)) != 0) {
585 (r = sshbuf_put_u8(sig, resp->flags)) != 0 ||
586 (r = sshbuf_put_u32(sig, resp->counter)) != 0) {
592 sshbuf_dump_data(resp->sig_r, resp->sig_r_len, stderr);
594 sshbuf_dump_data(resp->sig_s, resp->sig_s_len, stderr);
606 sshsk_ed25519_sig(struct sk_sign_response *resp, struct sshbuf *sig)
611 if (resp->sig_r == NULL) {
617 resp->sig_r, resp->sig_r_len)) != 0 ||
618 (r = sshbuf_put_u8(sig, resp->flags)) != 0 ||
619 (r = sshbuf_put_u32(sig, resp->counter)) != 0) {
625 sshbuf_dump_data(resp->sig_r, resp->sig_r_len, stderr);
640 struct sk_sign_response *resp = NULL;
683 key->sk_flags, pin, opts, &resp)) != 0) {
700 if ((r = sshsk_ecdsa_sig(resp, sig)) != 0)
705 if ((r = sshsk_ed25519_sig(resp, sig)) != 0)
711 __func__, resp->flags, resp->counter);
731 sshsk_free_sign_response(resp);