Lines Matching refs:rks

70 	    struct sk_resident_key ***rks, size_t *nrks);
84 struct sk_resident_key ***rks, size_t *nrks);
709 sshsk_free_sk_resident_keys(struct sk_resident_key **rks, size_t nrks) in sshsk_free_sk_resident_keys() argument
713 if (nrks == 0 || rks == NULL) in sshsk_free_sk_resident_keys()
716 free(rks[i]->application); in sshsk_free_sk_resident_keys()
717 freezero(rks[i]->key.key_handle, rks[i]->key.key_handle_len); in sshsk_free_sk_resident_keys()
718 freezero(rks[i]->key.public_key, rks[i]->key.public_key_len); in sshsk_free_sk_resident_keys()
719 freezero(rks[i]->key.signature, rks[i]->key.signature_len); in sshsk_free_sk_resident_keys()
720 freezero(rks[i]->key.attestation_cert, in sshsk_free_sk_resident_keys()
721 rks[i]->key.attestation_cert_len); in sshsk_free_sk_resident_keys()
722 freezero(rks[i], sizeof(**rks)); in sshsk_free_sk_resident_keys()
724 free(rks); in sshsk_free_sk_resident_keys()
733 struct sk_resident_key **rks = NULL; in sshsk_load_resident() local
753 if ((r = skp->sk_load_resident_keys(pin, opts, &rks, &nrks)) != 0) { in sshsk_load_resident()
760 __func__, i, rks[i]->slot, rks[i]->alg, in sshsk_load_resident()
761 rks[i]->application); in sshsk_load_resident()
763 if (strncmp(rks[i]->application, "ssh:", 4) != 0) in sshsk_load_resident()
765 switch (rks[i]->alg) { in sshsk_load_resident()
774 if ((r = sshsk_key_from_response(rks[i]->alg, in sshsk_load_resident()
775 rks[i]->application, flags, &rks[i]->key, &key)) != 0) in sshsk_load_resident()
797 sshsk_free_sk_resident_keys(rks, nrks); in sshsk_load_resident()