Lines Matching refs:sshkey
105 struct sshkey *signature_key;
109 struct sshkey { struct
129 struct sshkey *sshkey_new(int); argument
130 struct sshkey *sshkey_new_private(int); /* XXX garbage collect */
131 void sshkey_free(struct sshkey *);
132 int sshkey_equal_public(const struct sshkey *,
133 const struct sshkey *);
134 int sshkey_equal(const struct sshkey *, const struct sshkey *);
135 char *sshkey_fingerprint(const struct sshkey *,
137 int sshkey_fingerprint_raw(const struct sshkey *k,
139 const char *sshkey_type(const struct sshkey *);
140 const char *sshkey_cert_type(const struct sshkey *);
141 int sshkey_format_text(const struct sshkey *, struct sshbuf *);
142 int sshkey_write(const struct sshkey *, FILE *);
143 int sshkey_read(struct sshkey *, char **);
144 u_int sshkey_size(const struct sshkey *);
146 int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
147 int sshkey_from_private(const struct sshkey *, struct sshkey **);
149 int sshkey_is_cert(const struct sshkey *);
152 int sshkey_to_certified(struct sshkey *);
153 int sshkey_drop_cert(struct sshkey *);
154 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
155 int sshkey_cert_check_authority(const struct sshkey *, int, int,
160 int sshkey_certify(struct sshkey *, struct sshkey *, const char *);
162 typedef int sshkey_certify_signer(const struct sshkey *, u_char **, size_t *,
164 int sshkey_certify_custom(struct sshkey *, struct sshkey *, const char *,
176 const char *sshkey_ssh_name(const struct sshkey *);
177 const char *sshkey_ssh_name_plain(const struct sshkey *);
181 int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
182 int sshkey_fromb(struct sshbuf *, struct sshkey **);
183 int sshkey_froms(struct sshbuf *, struct sshkey **);
184 int sshkey_to_blob(const struct sshkey *, u_char **, size_t *);
185 int sshkey_to_base64(const struct sshkey *, char **);
186 int sshkey_putb(const struct sshkey *, struct sshbuf *);
187 int sshkey_puts(const struct sshkey *, struct sshbuf *);
188 int sshkey_puts_opts(const struct sshkey *, struct sshbuf *,
190 int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *);
191 int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
193 int sshkey_sign(const struct sshkey *, u_char **, size_t *,
195 int sshkey_verify(const struct sshkey *, const u_char *, size_t,
205 int sshkey_private_serialize(const struct sshkey *key, struct sshbuf *buf);
206 int sshkey_private_serialize_opt(const struct sshkey *key, struct sshbuf *buf,
208 int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **keyp);
211 int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
215 const char *passphrase, struct sshkey **keyp, char **commentp);
217 const char *passphrase, struct sshkey **keyp, char **commentp);
220 int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *);
228 int sshkey_set_filename(struct sshkey *, const char *);
229 int sshkey_enable_maxsign(struct sshkey *, u_int32_t);
230 u_int32_t sshkey_signatures_left(const struct sshkey *);
231 int sshkey_forward_state(const struct sshkey *, u_int32_t, sshkey_printfn *);
232 int sshkey_private_serialize_maxsign(const struct sshkey *key, struct sshbuf *buf,
236 int ssh_rsa_sign(const struct sshkey *key,
239 int ssh_rsa_verify(const struct sshkey *key,
242 int ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
244 int ssh_dss_verify(const struct sshkey *key,
247 int ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
249 int ssh_ecdsa_verify(const struct sshkey *key,
252 int ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
254 int ssh_ed25519_verify(const struct sshkey *key,
257 int ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
259 int ssh_xmss_verify(const struct sshkey *key,