version 1.57, 2022/10/28 00:41:17 |
version 1.58, 2022/10/28 00:41:52 |
|
|
void (*cleanup)(struct sshkey *); /* optional */ |
void (*cleanup)(struct sshkey *); /* optional */ |
int (*equal)(const struct sshkey *, const struct sshkey *); |
int (*equal)(const struct sshkey *, const struct sshkey *); |
int (*serialize_public)(const struct sshkey *, struct sshbuf *, |
int (*serialize_public)(const struct sshkey *, struct sshbuf *, |
const char *, enum sshkey_serialize_rep); |
enum sshkey_serialize_rep); |
|
int (*deserialize_public)(const char *, struct sshbuf *, |
|
struct sshkey *); |
int (*generate)(struct sshkey *, int); /* optional */ |
int (*generate)(struct sshkey *, int); /* optional */ |
int (*copy_public)(const struct sshkey *, struct sshkey *); |
int (*copy_public)(const struct sshkey *, struct sshkey *); |
}; |
}; |
|
|
void sshkey_sk_cleanup(struct sshkey *k); |
void sshkey_sk_cleanup(struct sshkey *k); |
int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b); |
int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b); |
int sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to); |
int sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to); |
|
int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key); |
|
#ifdef WITH_OPENSSL |
|
int check_rsa_length(const RSA *rsa); /* XXX remove */ |
|
#endif |
|
|
int ssh_rsa_sign(const struct sshkey *key, |
int ssh_rsa_sign(const struct sshkey *key, |
u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, |
u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, |