Lines Matching refs:sshkey
1 /* $NetBSD: sshkey.c,v 1.36 2025/10/11 15:45:08 christos Exp $ */
2 /* $OpenBSD: sshkey.c,v 1.155 2025/10/03 00:08:02 djm Exp $ */
30 __RCSID("$NetBSD: sshkey.c,v 1.36 2025/10/11 15:45:08 christos Exp $");
65 #include "sshkey.h"
91 struct sshkey **keyp, int allow_cert);
167 sshkey_impl_from_key(const struct sshkey *k)
175 sshkey_type(const struct sshkey *k)
205 sshkey_ssh_name(const struct sshkey *k)
211 sshkey_ssh_name_plain(const struct sshkey *k)
363 sshkey_size(const struct sshkey *k)
386 sshkey_is_cert(const struct sshkey *k)
394 sshkey_is_sk(const struct sshkey *k)
656 struct sshkey *
659 struct sshkey *k;
689 sshkey_sk_cleanup(struct sshkey *k)
720 sshkey_free_contents(struct sshkey *k)
738 sshkey_free(struct sshkey *k)
761 sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b)
775 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b)
788 sshkey_equal(const struct sshkey *a, const struct sshkey *b)
802 sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b)
813 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain,
845 sshkey_putb(const struct sshkey *key, struct sshbuf *b)
851 sshkey_puts_opts_internal(const struct sshkey *key, struct sshbuf *b,
867 sshkey_puts(const struct sshkey *key, struct sshbuf *b)
873 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
879 sshkey_puts_plain(const struct sshkey *key, struct sshbuf *b)
885 to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain,
917 sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
923 sshkey_plain_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
929 sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg,
1092 const struct sshkey *k)
1188 sshkey_fingerprint(const struct sshkey *k, int dgst_alg,
1252 sshkey_read(struct sshkey *ret, char **cpp)
1254 struct sshkey *k;
1326 sshkey_to_base64(const struct sshkey *key, char **b64p)
1355 sshkey_format_text(const struct sshkey *key, struct sshbuf *b)
1372 sshkey_write(const struct sshkey *key, FILE *f)
1395 sshkey_cert_type(const struct sshkey *k)
1408 sshkey_check_rsa_length(const struct sshkey *k, int min_size)
1446 sshkey_generate(int type, u_int bits, struct sshkey **keyp)
1448 struct sshkey *k;
1472 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key)
1542 sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to)
1551 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
1553 struct sshkey *n = NULL;
1578 sshkey_is_shielded(struct sshkey *k)
1584 sshkey_shield_private(struct sshkey *k)
1591 struct sshkey *kswap = NULL, tmp;
1718 sshkey_unshield_private(struct sshkey *k)
1724 struct sshkey *kswap = NULL, tmp;
1807 cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
1933 sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key)
1942 sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
1947 struct sshkey *key = NULL;
2009 sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
2022 sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
2028 sshkey_froms(struct sshbuf *buf, struct sshkey **keyp)
2073 sshkey_check_cert_sigtype(const struct sshkey *key, const char *allowed)
2133 sshkey_sign(struct sshkey *key,
2176 sshkey_verify(const struct sshkey *key,
2195 sshkey_to_certified(struct sshkey *k)
2209 sshkey_drop_cert(struct sshkey *k)
2221 sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg,
2332 default_key_sign(struct sshkey *key, u_char **sigp, size_t *lenp,
2344 sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg,
2352 sshkey_cert_check_authority(const struct sshkey *k,
2412 sshkey_cert_check_authority_now(const struct sshkey *k,
2428 sshkey_cert_check_host(const struct sshkey *key, const char *host,
2476 sshkey_serialize_private_sk(const struct sshkey *key, struct sshbuf *b)
2490 sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
2534 sshkey_private_serialize(struct sshkey *key, struct sshbuf *b)
2543 sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k)
2560 sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **kp)
2566 struct sshkey *k = NULL;
2780 sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob,
2981 struct sshbuf **decryptedp, struct sshkey **pubkeyp)
2989 struct sshkey *pubkey = NULL;
3128 struct sshkey **keyp, char **commentp)
3133 struct sshkey *k = NULL, *pubkey = NULL;
3188 struct sshkey **keyp)
3192 struct sshkey *pubkey = NULL;
3239 sshkey_private_to_blob_pem_pkcs8(struct sshkey *key, struct sshbuf *buf,
3323 sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
3438 const char *passphrase, struct sshkey **keyp)
3441 struct sshkey *prv = NULL;
3577 const char *passphrase, struct sshkey **keyp, char **commentp)
3600 struct sshkey **keyp, char **commentp)
3619 struct sshkey **pubkeyp)