Lines Matching refs:sshkey

120 	struct sshkey	*signature_key;
125 struct sshkey { struct
168 u_int (*size)(const struct sshkey *); /* optional */ argument
169 int (*alloc)(struct sshkey *); /* optional */
170 void (*cleanup)(struct sshkey *); /* optional */
171 int (*equal)(const struct sshkey *, const struct sshkey *);
172 int (*serialize_public)(const struct sshkey *, struct sshbuf *,
175 struct sshkey *);
176 int (*serialize_private)(const struct sshkey *, struct sshbuf *,
179 struct sshkey *);
180 int (*generate)(struct sshkey *, int); /* optional */
181 int (*copy_public)(const struct sshkey *, struct sshkey *);
182 int (*sign)(struct sshkey *, u_char **, size_t *,
185 int (*verify)(const struct sshkey *, const u_char *, size_t,
202 struct sshkey *sshkey_new(int);
203 void sshkey_free(struct sshkey *);
204 int sshkey_equal_public(const struct sshkey *,
205 const struct sshkey *);
206 int sshkey_equal(const struct sshkey *, const struct sshkey *);
207 char *sshkey_fingerprint(const struct sshkey *,
209 int sshkey_fingerprint_raw(const struct sshkey *k,
211 const char *sshkey_type(const struct sshkey *);
212 const char *sshkey_cert_type(const struct sshkey *);
213 int sshkey_format_text(const struct sshkey *, struct sshbuf *);
214 int sshkey_write(const struct sshkey *, FILE *);
215 int sshkey_read(struct sshkey *, char **);
216 u_int sshkey_size(const struct sshkey *);
218 int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
219 int sshkey_from_private(const struct sshkey *, struct sshkey **);
221 int sshkey_is_shielded(struct sshkey *);
222 int sshkey_shield_private(struct sshkey *);
223 int sshkey_unshield_private(struct sshkey *);
226 int sshkey_is_cert(const struct sshkey *);
227 int sshkey_is_sk(const struct sshkey *);
234 int sshkey_to_certified(struct sshkey *);
235 int sshkey_drop_cert(struct sshkey *);
236 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
237 int sshkey_cert_check_authority(const struct sshkey *, int, int, int,
239 int sshkey_cert_check_authority_now(const struct sshkey *, int, int, int,
241 int sshkey_cert_check_host(const struct sshkey *, const char *,
245 int sshkey_check_cert_sigtype(const struct sshkey *, const char *);
247 int sshkey_certify(struct sshkey *, struct sshkey *,
250 typedef int sshkey_certify_signer(struct sshkey *, u_char **, size_t *,
253 int sshkey_certify_custom(struct sshkey *, struct sshkey *, const char *,
265 const char *sshkey_ssh_name(const struct sshkey *);
266 const char *sshkey_ssh_name_plain(const struct sshkey *);
270 int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
271 int sshkey_fromb(struct sshbuf *, struct sshkey **);
272 int sshkey_froms(struct sshbuf *, struct sshkey **);
273 int sshkey_to_blob(const struct sshkey *, u_char **, size_t *);
274 int sshkey_to_base64(const struct sshkey *, char **);
275 int sshkey_putb(const struct sshkey *, struct sshbuf *);
276 int sshkey_puts(const struct sshkey *, struct sshbuf *);
277 int sshkey_puts_opts(const struct sshkey *, struct sshbuf *,
279 int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *);
280 int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
282 int sshkey_sign(struct sshkey *, u_char **, size_t *,
284 int sshkey_verify(const struct sshkey *, const u_char *, size_t,
295 int sshkey_private_serialize(struct sshkey *key, struct sshbuf *buf);
296 int sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
298 int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **keyp);
301 int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
305 const char *passphrase, struct sshkey **keyp, char **commentp);
307 const char *passphrase, struct sshkey **keyp, char **commentp);
309 int type, struct sshkey **pubkeyp);
311 int sshkey_check_rsa_length(const struct sshkey *, int);
313 int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *);
316 int sshkey_set_filename(struct sshkey *, const char *);
317 int sshkey_enable_maxsign(struct sshkey *, u_int32_t);
318 u_int32_t sshkey_signatures_left(const struct sshkey *);
319 int sshkey_private_serialize_maxsign(struct sshkey *key,
325 int sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b);
326 void sshkey_sk_cleanup(struct sshkey *k);
327 int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b);
328 int sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to);
329 int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key);
330 int sshkey_serialize_private_sk(const struct sshkey *key,
332 int sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k);