version 1.7, 2020/01/23 23:31:52 |
version 1.8, 2020/08/27 01:06:19 |
|
|
struct sshkey_sig_details; |
struct sshkey_sig_details; |
|
|
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 *, const char *, u_int, void *); |
const u_char *, size_t, const char *, 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 char *sk_provider, const struct sshbuf *message, |
const char *sk_provider, const char *sk_pin, const struct sshbuf *message, |
const char *sig_namespace, struct sshbuf **out, |
const char *sig_namespace, struct sshbuf **out, |
sshsig_signer *signer, void *signer_ctx); |
sshsig_signer *signer, void *signer_ctx); |
|
|
|
|
* 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, |
const char *sk_provider, int fd, const char *sig_namespace, |
const char *sk_provider, const char *sk_pin, |
|
int fd, const char *sig_namespace, |
struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
|
|
/* |
/* |