version 1.8, 2022/10/28 00:36:31 |
version 1.9, 2022/10/28 00:37:24 |
|
|
return 1; |
return 1; |
} |
} |
|
|
|
static int |
|
ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b, |
|
const char *typename, enum sshkey_serialize_rep opts) |
|
{ |
|
int r; |
|
|
|
if ((r = sshkey_ed25519_funcs.serialize_public(key, b, |
|
typename, opts)) != 0) |
|
return r; |
|
if ((r = sshkey_serialize_sk(key, b)) != 0) |
|
return r; |
|
|
|
return 0; |
|
} |
|
|
int |
int |
ssh_ed25519_sk_verify(const struct sshkey *key, |
ssh_ed25519_sk_verify(const struct sshkey *key, |
const u_char *signature, size_t signaturelen, |
const u_char *signature, size_t signaturelen, |
|
|
/* .alloc = */ NULL, |
/* .alloc = */ NULL, |
/* .cleanup = */ ssh_ed25519_sk_cleanup, |
/* .cleanup = */ ssh_ed25519_sk_cleanup, |
/* .equal = */ ssh_ed25519_sk_equal, |
/* .equal = */ ssh_ed25519_sk_equal, |
|
/* .ssh_serialize_public = */ ssh_ed25519_sk_serialize_public, |
}; |
}; |
|
|
const struct sshkey_impl sshkey_ed25519_sk_impl = { |
const struct sshkey_impl sshkey_ed25519_sk_impl = { |