Lines Matching refs:sshkey

90 int	sshkey_private_serialize_opt(struct sshkey *key,
93 struct sshkey **keyp, int allow_cert);
199 sshkey_impl_from_key(const struct sshkey *k) in sshkey_impl_from_key()
207 sshkey_type(const struct sshkey *k) in sshkey_type()
237 sshkey_ssh_name(const struct sshkey *k) in sshkey_ssh_name()
243 sshkey_ssh_name_plain(const struct sshkey *k) in sshkey_ssh_name_plain()
403 sshkey_size(const struct sshkey *k) in sshkey_size()
426 sshkey_is_cert(const struct sshkey *k) in sshkey_is_cert()
434 sshkey_is_sk(const struct sshkey *k) in sshkey_is_sk()
712 struct sshkey *
715 struct sshkey *k; in sshkey_new()
745 sshkey_sk_cleanup(struct sshkey *k) in sshkey_sk_cleanup()
787 sshkey_free_contents(struct sshkey *k) in sshkey_free_contents()
803 sshkey_free(struct sshkey *k) in sshkey_free()
826 sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_sk_fields_equal()
840 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) in sshkey_equal_public()
853 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal()
867 sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b) in sshkey_serialize_sk()
878 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain, in to_blob_buf()
910 sshkey_putb(const struct sshkey *key, struct sshbuf *b) in sshkey_putb()
916 sshkey_puts_opts(const struct sshkey *key, struct sshbuf *b, in sshkey_puts_opts()
932 sshkey_puts(const struct sshkey *key, struct sshbuf *b) in sshkey_puts()
938 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b) in sshkey_putb_plain()
944 to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain, in to_blob()
976 sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp) in sshkey_to_blob()
982 sshkey_plain_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp) in sshkey_plain_to_blob()
988 sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg, in sshkey_fingerprint_raw()
1151 const struct sshkey *k) in fingerprint_randomart()
1247 sshkey_fingerprint(const struct sshkey *k, int dgst_alg, in sshkey_fingerprint()
1311 sshkey_read(struct sshkey *ret, char **cpp) in sshkey_read()
1313 struct sshkey *k; in sshkey_read()
1385 sshkey_to_base64(const struct sshkey *key, char **b64p) in sshkey_to_base64()
1414 sshkey_format_text(const struct sshkey *key, struct sshbuf *b) in sshkey_format_text()
1431 sshkey_write(const struct sshkey *key, FILE *f) in sshkey_write()
1454 sshkey_cert_type(const struct sshkey *k) in sshkey_cert_type()
1467 sshkey_check_rsa_length(const struct sshkey *k, int min_size) in sshkey_check_rsa_length()
1505 sshkey_generate(int type, u_int bits, struct sshkey **keyp) in sshkey_generate()
1507 struct sshkey *k; in sshkey_generate()
1531 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key) in sshkey_cert_copy()
1601 sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to) in sshkey_copy_public_sk()
1610 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) in sshkey_from_private()
1612 struct sshkey *n = NULL; in sshkey_from_private()
1637 sshkey_is_shielded(struct sshkey *k) in sshkey_is_shielded()
1643 sshkey_shield_private(struct sshkey *k) in sshkey_shield_private()
1650 struct sshkey *kswap = NULL, tmp; in sshkey_shield_private()
1778 sshkey_unshield_private(struct sshkey *k) in sshkey_unshield_private()
1784 struct sshkey *kswap = NULL, tmp; in sshkey_unshield_private()
1867 cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf) in cert_parse()
1993 sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key) in sshkey_deserialize_sk()
2002 sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp, in sshkey_from_blob_internal()
2007 struct sshkey *key = NULL; in sshkey_from_blob_internal()
2069 sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp) in sshkey_from_blob()
2082 sshkey_fromb(struct sshbuf *b, struct sshkey **keyp) in sshkey_fromb()
2088 sshkey_froms(struct sshbuf *buf, struct sshkey **keyp) in sshkey_froms()
2133 sshkey_check_cert_sigtype(const struct sshkey *key, const char *allowed) in sshkey_check_cert_sigtype()
2193 sshkey_sign(struct sshkey *key, in sshkey_sign()
2233 sshkey_verify(const struct sshkey *key, in sshkey_verify()
2252 sshkey_to_certified(struct sshkey *k) in sshkey_to_certified()
2266 sshkey_drop_cert(struct sshkey *k) in sshkey_drop_cert()
2278 sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, in sshkey_certify_custom()
2389 default_key_sign(struct sshkey *key, u_char **sigp, size_t *lenp, in default_key_sign()
2401 sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg, in sshkey_certify()
2409 sshkey_cert_check_authority(const struct sshkey *k, in sshkey_cert_check_authority()
2469 sshkey_cert_check_authority_now(const struct sshkey *k, in sshkey_cert_check_authority_now()
2485 sshkey_cert_check_host(const struct sshkey *key, const char *host, in sshkey_cert_check_host()
2533 sshkey_serialize_private_sk(const struct sshkey *key, struct sshbuf *b) in sshkey_serialize_private_sk()
2547 sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf, in sshkey_private_serialize_opt()
2591 sshkey_private_serialize(struct sshkey *key, struct sshbuf *b) in sshkey_private_serialize()
2599 sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k) in sshkey_private_deserialize_sk()
2616 sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **kp) in sshkey_private_deserialize()
2622 struct sshkey *k = NULL; in sshkey_private_deserialize()
2840 sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob, in sshkey_private_to_blob2()
3042 struct sshbuf **decryptedp, struct sshkey **pubkeyp) in private2_decrypt()
3050 struct sshkey *pubkey = NULL; in private2_decrypt()
3189 struct sshkey **keyp, char **commentp) in sshkey_parse_private2()
3194 struct sshkey *k = NULL, *pubkey = NULL; in sshkey_parse_private2()
3249 struct sshkey **keyp) in sshkey_parse_private2_pubkey()
3253 struct sshkey *pubkey = NULL; in sshkey_parse_private2_pubkey()
3300 sshkey_private_to_blob_pem_pkcs8(struct sshkey *key, struct sshbuf *buf, in sshkey_private_to_blob_pem_pkcs8()
3400 sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob, in sshkey_private_to_fileblob()
3523 const char *passphrase, struct sshkey **keyp) in sshkey_parse_private_pem_fileblob()
3526 struct sshkey *prv = NULL; in sshkey_parse_private_pem_fileblob()
3681 const char *passphrase, struct sshkey **keyp, char **commentp) in sshkey_parse_private_fileblob_type()
3712 struct sshkey **keyp, char **commentp) in sshkey_parse_private_fileblob()
3731 struct sshkey **pubkeyp) in sshkey_parse_pubkey_from_private_fileblob_type()
3749 sshkey_private_serialize_maxsign(struct sshkey *k, struct sshbuf *b, in sshkey_private_serialize_maxsign()
3773 sshkey_signatures_left(const struct sshkey *k) in sshkey_signatures_left()
3781 sshkey_enable_maxsign(struct sshkey *k, u_int32_t maxsign) in sshkey_enable_maxsign()
3789 sshkey_set_filename(struct sshkey *k, const char *filename) in sshkey_set_filename()
3803 sshkey_private_serialize_maxsign(struct sshkey *k, struct sshbuf *b, in sshkey_private_serialize_maxsign()
3810 sshkey_signatures_left(const struct sshkey *k) in sshkey_signatures_left()
3816 sshkey_enable_maxsign(struct sshkey *k, u_int32_t maxsign) in sshkey_enable_maxsign()
3822 sshkey_set_filename(struct sshkey *k, const char *filename) in sshkey_set_filename()