version 1.10, 2022/10/28 00:39:29 |
version 1.11, 2022/10/28 00:41:17 |
|
|
return 0; |
return 0; |
} |
} |
|
|
|
static int |
|
ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to) |
|
{ |
|
int r; |
|
|
|
if ((r = sshkey_ed25519_funcs.copy_public(from, to)) != 0) |
|
return r; |
|
if ((r = sshkey_copy_public_sk(from, to)) != 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, |
|
|
/* .equal = */ ssh_ed25519_sk_equal, |
/* .equal = */ ssh_ed25519_sk_equal, |
/* .ssh_serialize_public = */ ssh_ed25519_sk_serialize_public, |
/* .ssh_serialize_public = */ ssh_ed25519_sk_serialize_public, |
/* .generate = */ NULL, |
/* .generate = */ NULL, |
|
/* .copy_public = */ ssh_ed25519_sk_copy_public, |
}; |
}; |
|
|
const struct sshkey_impl sshkey_ed25519_sk_impl = { |
const struct sshkey_impl sshkey_ed25519_sk_impl = { |