version 1.3, 2019/09/05 04:55:32 |
version 1.4, 2019/10/31 21:23:19 |
|
|
struct sshsigopt; |
struct sshsigopt; |
|
|
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
const u_char *, size_t, const char *, u_int, void *); |
const u_char *, size_t, const char *, const char *, u_int, void *); |
|
|
/* Buffer-oriented API */ |
/* Buffer-oriented API */ |
|
|
|
|
* out is populated with the detached signature, or NULL on failure. |
* out is populated with the detached signature, or NULL on failure. |
*/ |
*/ |
int sshsig_signb(struct sshkey *key, const char *hashalg, |
int sshsig_signb(struct sshkey *key, const char *hashalg, |
const struct sshbuf *message, const char *sig_namespace, |
const char *sk_provider, const struct sshbuf *message, |
struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
const char *sig_namespace, struct sshbuf **out, |
|
sshsig_signer *signer, void *signer_ctx); |
|
|
/* |
/* |
* Verifies that a detached signature is valid and optionally returns key |
* Verifies that a detached signature is valid and optionally returns key |
|
|
* out is populated with the detached signature, or NULL on failure. |
* out is populated with the detached signature, or NULL on failure. |
*/ |
*/ |
int sshsig_sign_fd(struct sshkey *key, const char *hashalg, |
int sshsig_sign_fd(struct sshkey *key, const char *hashalg, |
int fd, const char *sig_namespace, struct sshbuf **out, |
const char *sk_provider, int fd, const char *sig_namespace, |
sshsig_signer *signer, void *signer_ctx); |
struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
|
|
/* |
/* |
* Verifies that a detached signature over a file is valid and optionally |
* Verifies that a detached signature over a file is valid and optionally |