Lines Matching refs:sshkey
122 struct sshkey *signature_key;
127 struct sshkey { struct
169 u_int (*size)(const struct sshkey *); /* optional */ argument
170 int (*alloc)(struct sshkey *); /* optional */
171 void (*cleanup)(struct sshkey *); /* optional */
172 int (*equal)(const struct sshkey *, const struct sshkey *);
173 int (*serialize_public)(const struct sshkey *, struct sshbuf *,
176 struct sshkey *);
177 int (*serialize_private)(const struct sshkey *, struct sshbuf *,
180 struct sshkey *);
181 int (*generate)(struct sshkey *, int); /* optional */
182 int (*copy_public)(const struct sshkey *, struct sshkey *);
183 int (*sign)(struct sshkey *, u_char **, size_t *,
186 int (*verify)(const struct sshkey *, const u_char *, size_t,
203 struct sshkey *sshkey_new(int);
204 void sshkey_free(struct sshkey *);
205 int sshkey_equal_public(const struct sshkey *,
206 const struct sshkey *);
207 int sshkey_equal(const struct sshkey *, const struct sshkey *);
208 char *sshkey_fingerprint(const struct sshkey *,
210 int sshkey_fingerprint_raw(const struct sshkey *k,
212 const char *sshkey_type(const struct sshkey *);
213 const char *sshkey_cert_type(const struct sshkey *);
214 int sshkey_format_text(const struct sshkey *, struct sshbuf *);
215 int sshkey_write(const struct sshkey *, FILE *);
216 int sshkey_read(struct sshkey *, char **);
217 u_int sshkey_size(const struct sshkey *);
219 int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
220 int sshkey_from_private(const struct sshkey *, struct sshkey **);
222 int sshkey_is_shielded(struct sshkey *);
223 int sshkey_shield_private(struct sshkey *);
224 int sshkey_unshield_private(struct sshkey *);
228 int sshkey_is_cert(const struct sshkey *);
229 int sshkey_is_sk(const struct sshkey *);
236 int sshkey_to_certified(struct sshkey *);
237 int sshkey_drop_cert(struct sshkey *);
238 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
239 int sshkey_cert_check_authority(const struct sshkey *, int, int, int,
241 int sshkey_cert_check_authority_now(const struct sshkey *, int, int, int,
243 int sshkey_cert_check_host(const struct sshkey *, const char *,
247 int sshkey_check_cert_sigtype(const struct sshkey *, const char *);
249 int sshkey_certify(struct sshkey *, struct sshkey *,
252 typedef int sshkey_certify_signer(struct sshkey *, u_char **, size_t *,
255 int sshkey_certify_custom(struct sshkey *, struct sshkey *, const char *,
268 const char *sshkey_ssh_name(const struct sshkey *);
269 const char *sshkey_ssh_name_plain(const struct sshkey *);
273 int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
274 int sshkey_fromb(struct sshbuf *, struct sshkey **);
275 int sshkey_froms(struct sshbuf *, struct sshkey **);
276 int sshkey_to_blob(const struct sshkey *, u_char **, size_t *);
277 int sshkey_to_base64(const struct sshkey *, char **);
278 int sshkey_putb(const struct sshkey *, struct sshbuf *);
279 int sshkey_puts(const struct sshkey *, struct sshbuf *);
280 int sshkey_puts_opts(const struct sshkey *, struct sshbuf *,
282 int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *);
283 int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
285 int sshkey_sign(struct sshkey *, u_char **, size_t *,
287 int sshkey_verify(const struct sshkey *, const u_char *, size_t,
304 int sshkey_private_serialize(struct sshkey *key, struct sshbuf *buf);
305 int sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
307 int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **keyp);
310 int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
314 const char *passphrase, struct sshkey **keyp, char **commentp);
316 const char *passphrase, struct sshkey **keyp, char **commentp);
318 int type, struct sshkey **pubkeyp);
320 int sshkey_check_rsa_length(const struct sshkey *, int);
326 int sshkey_set_filename(struct sshkey *, const char *);
327 int sshkey_enable_maxsign(struct sshkey *, u_int32_t);
328 u_int32_t sshkey_signatures_left(const struct sshkey *);
329 int sshkey_private_serialize_maxsign(struct sshkey *key,
339 int sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b);
340 void sshkey_sk_cleanup(struct sshkey *k);
341 int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b);
342 int sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to);
343 int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key);
344 int sshkey_serialize_private_sk(const struct sshkey *key,
346 int sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k);