Lines Matching defs:sshkey

1 /* $OpenBSD: sshkey.h,v 1.13 2016/05/02 09:36:42 djm Exp $ */
95 struct sshkey *signature_key;
99 struct sshkey {
114 struct sshkey *sshkey_new(int);
115 int sshkey_add_private(struct sshkey *);
116 struct sshkey *sshkey_new_private(int);
117 void sshkey_free(struct sshkey *);
118 int sshkey_demote(const struct sshkey *, struct sshkey **);
119 int sshkey_equal_public(const struct sshkey *,
120 const struct sshkey *);
121 int sshkey_equal(const struct sshkey *, const struct sshkey *);
122 char *sshkey_fingerprint(const struct sshkey *,
124 int sshkey_fingerprint_raw(const struct sshkey *k,
126 const char *sshkey_type(const struct sshkey *);
127 const char *sshkey_cert_type(const struct sshkey *);
128 int sshkey_write(const struct sshkey *, FILE *);
129 int sshkey_read(struct sshkey *, char **);
130 u_int sshkey_size(const struct sshkey *);
132 int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
133 int sshkey_from_private(const struct sshkey *, struct sshkey **);
135 int sshkey_is_cert(const struct sshkey *);
138 int sshkey_to_certified(struct sshkey *);
139 int sshkey_drop_cert(struct sshkey *);
140 int sshkey_certify(struct sshkey *, struct sshkey *, const char *);
141 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
142 int sshkey_cert_check_authority(const struct sshkey *, int, int,
156 const char *sshkey_ssh_name(const struct sshkey *);
157 const char *sshkey_ssh_name_plain(const struct sshkey *);
161 int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
162 int sshkey_fromb(struct sshbuf *, struct sshkey **);
163 int sshkey_froms(struct sshbuf *, struct sshkey **);
164 int sshkey_to_blob(const struct sshkey *, u_char **, size_t *);
165 int sshkey_to_base64(const struct sshkey *, char **);
166 int sshkey_putb(const struct sshkey *, struct sshbuf *);
167 int sshkey_puts(const struct sshkey *, struct sshbuf *);
168 int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *);
169 int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
171 int sshkey_sign(const struct sshkey *, u_char **, size_t *,
173 int sshkey_verify(const struct sshkey *, const u_char *, size_t,
181 int sshkey_private_serialize(const struct sshkey *key, struct sshbuf *buf);
182 int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **keyp);
185 int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
189 struct sshkey **keyp, char **commentp);
191 const char *passphrase, struct sshkey **keyp, char **commentp);
193 const char *passphrase, struct sshkey **keyp, char **commentp);
196 int ssh_rsa_sign(const struct sshkey *key,
199 int ssh_rsa_verify(const struct sshkey *key,
201 int ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
203 int ssh_dss_verify(const struct sshkey *key,
206 int ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
208 int ssh_ecdsa_verify(const struct sshkey *key,
211 int ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
213 int ssh_ed25519_verify(const struct sshkey *key,