Lines Matching defs:resp

191 sshsk_ecdsa_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
213 resp->public_key, resp->public_key_len)) != 0) {
246 sshsk_ed25519_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
252 if (resp->public_key_len != ED25519_PK_SZ) {
253 error_f("invalid size: %zu", resp->public_key_len);
267 memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ);
279 struct sk_enroll_response *resp, struct sshkey **keyp)
287 if (resp->public_key == NULL || resp->key_handle == NULL) {
295 if ((r = sshsk_ecdsa_assemble(resp, &key)) != 0)
300 if ((r = sshsk_ed25519_assemble(resp, &key)) != 0)
320 if ((r = sshbuf_put(key->sk_key_handle, resp->key_handle,
321 resp->key_handle_len)) != 0) {
424 fill_attestation_blob(const struct sk_enroll_response *resp,
433 resp->attestation_cert, resp->attestation_cert_len)) != 0 ||
435 resp->signature, resp->signature_len)) != 0 ||
437 resp->authdata, resp->authdata_len)) != 0 ||
458 struct sk_enroll_response *resp = NULL;
521 flags, pin, opts, &resp)) != 0) {
527 if ((r = sshsk_key_from_response(alg, application, resp->flags,
528 resp, &key)) != 0)
532 if ((r = fill_attestation_blob(resp, attest)) != 0)
543 sshsk_free_enroll_response(resp);
550 sshsk_ecdsa_sig(struct sk_sign_response *resp, struct sshbuf *sig)
556 if (resp->sig_r == NULL || resp->sig_s == NULL) {
567 resp->sig_r, resp->sig_r_len)) != 0 ||
569 resp->sig_s, resp->sig_s_len)) != 0) {
574 (r = sshbuf_put_u8(sig, resp->flags)) != 0 ||
575 (r = sshbuf_put_u32(sig, resp->counter)) != 0) {
581 sshbuf_dump_data(resp->sig_r, resp->sig_r_len, stderr);
583 sshbuf_dump_data(resp->sig_s, resp->sig_s_len, stderr);
595 sshsk_ed25519_sig(struct sk_sign_response *resp, struct sshbuf *sig)
600 if (resp->sig_r == NULL) {
606 resp->sig_r, resp->sig_r_len)) != 0 ||
607 (r = sshbuf_put_u8(sig, resp->flags)) != 0 ||
608 (r = sshbuf_put_u32(sig, resp->counter)) != 0) {
614 sshbuf_dump_data(resp->sig_r, resp->sig_r_len, stderr);
629 struct sk_sign_response *resp = NULL;
672 key->sk_flags, pin, opts, &resp)) != 0) {
689 if ((r = sshsk_ecdsa_sig(resp, sig)) != 0)
694 if ((r = sshsk_ed25519_sig(resp, sig)) != 0)
700 __func__, resp->flags, resp->counter);
720 sshsk_free_sign_response(resp);