version 1.11, 2022/10/28 00:35:40 |
version 1.12, 2022/10/28 00:36:31 |
|
|
k->ed25519_sk = NULL; |
k->ed25519_sk = NULL; |
} |
} |
|
|
|
static int |
|
ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b) |
|
{ |
|
if (a->ed25519_pk == NULL || b->ed25519_pk == NULL) |
|
return 0; |
|
if (memcmp(a->ed25519_pk, b->ed25519_pk, ED25519_PK_SZ) != 0) |
|
return 0; |
|
return 1; |
|
} |
|
|
int |
int |
ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, |
ssh_ed25519_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) |
|
|
return r; |
return r; |
} |
} |
|
|
static const struct sshkey_impl_funcs sshkey_ed25519_funcs = { |
/* NB. not static; used by ED25519-SK */ |
|
const struct sshkey_impl_funcs sshkey_ed25519_funcs = { |
/* .size = */ NULL, |
/* .size = */ NULL, |
/* .alloc = */ NULL, |
/* .alloc = */ NULL, |
/* .cleanup = */ ssh_ed25519_cleanup, |
/* .cleanup = */ ssh_ed25519_cleanup, |
|
/* .equal = */ ssh_ed25519_equal, |
}; |
}; |
|
|
const struct sshkey_impl sshkey_ed25519_impl = { |
const struct sshkey_impl sshkey_ed25519_impl = { |