version 1.6, 2022/10/28 00:35:40 |
version 1.7, 2022/10/28 00:36:31 |
|
|
k->xmss_filename = NULL; |
k->xmss_filename = NULL; |
} |
} |
|
|
|
static int |
|
ssh_xmss_equal(const struct sshkey *a, const struct sshkey *b) |
|
{ |
|
if (a->xmss_pk == NULL || b->xmss_pk == NULL) |
|
return 0; |
|
if (sshkey_xmss_pklen(a) != sshkey_xmss_pklen(b)) |
|
return 0; |
|
if (memcmp(a->xmss_pk, b->xmss_pk, sshkey_xmss_pklen(a)) != 0) |
|
return 0; |
|
return 1; |
|
} |
|
|
int |
int |
ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, |
ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, |
const u_char *data, size_t datalen, u_int compat) |
const u_char *data, size_t datalen, u_int compat) |
|
|
/* .size = */ NULL, |
/* .size = */ NULL, |
/* .alloc = */ NULL, |
/* .alloc = */ NULL, |
/* .cleanup = */ ssh_xmss_cleanup, |
/* .cleanup = */ ssh_xmss_cleanup, |
|
/* .equal = */ ssh_xmss_equal, |
}; |
}; |
|
|
const struct sshkey_impl sshkey_xmss_impl = { |
const struct sshkey_impl sshkey_xmss_impl = { |