Lines Matching full:sshkey
1 /* $OpenBSD: sshkey.c,v 1.15 2015/03/06 01:40:56 djm Exp $ */
59 #include "sshkey.h"
77 struct sshkey **keyp, int allow_cert);
123 sshkey_type(const struct sshkey *k)
159 sshkey_ssh_name(const struct sshkey *k)
165 sshkey_ssh_name_plain(const struct sshkey *k)
269 sshkey_size(const struct sshkey *k)
294 sshkey_cert_is_legacy(const struct sshkey *k)
320 sshkey_is_cert(const struct sshkey *k)
477 struct sshkey *
480 struct sshkey *k;
555 sshkey_add_private(struct sshkey *k)
596 struct sshkey *
599 struct sshkey *k = sshkey_new(type);
611 sshkey_free(struct sshkey *k)
685 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b)
744 sshkey_equal(const struct sshkey *a, const struct sshkey *b)
756 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
827 sshkey_putb(const struct sshkey *key, struct sshbuf *b)
833 sshkey_puts(const struct sshkey *key, struct sshbuf *b)
848 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
854 to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain)
885 sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
891 sshkey_plain_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
897 sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg,
1079 const struct sshkey *k)
1175 sshkey_fingerprint(const struct sshkey *k, int dgst_alg,
1255 sshkey_read(struct sshkey *ret, char **cpp)
1257 struct sshkey *k;
1412 sshkey_write(const struct sshkey *key, FILE *f)
1507 sshkey_cert_type(const struct sshkey *k)
1662 sshkey_generate(int type, u_int bits, struct sshkey **keyp)
1664 struct sshkey *k;
1709 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key)
1765 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
1767 struct sshkey *n = NULL;
1845 cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
1970 sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
1975 struct sshkey *key = NULL;
2159 sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
2172 sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
2178 sshkey_froms(struct sshbuf *buf, struct sshkey **keyp)
2191 sshkey_sign(const struct sshkey *key,
2229 sshkey_verify(const struct sshkey *key,
2261 sshkey_demote(const struct sshkey *k, struct sshkey **dkp)
2263 struct sshkey *pk;
2355 sshkey_to_certified(struct sshkey *k, int legacy)
2389 sshkey_drop_cert(struct sshkey *k)
2401 sshkey_certify(struct sshkey *k, struct sshkey *ca)
2533 sshkey_cert_check_authority(const struct sshkey *k,
2590 sshkey_private_serialize(const struct sshkey *key, struct sshbuf *b)
2689 sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **kp)
2692 struct sshkey *k = NULL;
3043 sshkey_private_to_blob2(const struct sshkey *prv, struct sshbuf *blob,
3197 struct sshkey **keyp, char **commentp)
3208 struct sshkey *k = NULL;
3416 sshkey_private_rsa1_to_blob(struct sshkey *key, struct sshbuf *blob,
3515 sshkey_private_pem_to_blob(struct sshkey *key, struct sshbuf *blob,
3572 sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
3607 struct sshkey **keyp, char **commentp)
3610 struct sshkey *pub = NULL;
3669 struct sshkey **keyp, char **commentp)
3679 struct sshkey *prv = NULL;
3790 const char *passphrase, struct sshkey **keyp)
3793 struct sshkey *prv = NULL;
3880 const char *passphrase, struct sshkey **keyp, char **commentp)
3921 const char *filename, struct sshkey **keyp, char **commentp)