version 1.10, 2022/10/28 00:36:31 |
version 1.11, 2022/10/28 00:37:24 |
|
|
return 1; |
return 1; |
} |
} |
|
|
|
static int |
|
ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b, |
|
const char *typename, enum sshkey_serialize_rep opts) |
|
{ |
|
int r; |
|
|
|
if ((r = sshkey_ecdsa_funcs.serialize_public(key, b, |
|
typename, opts)) != 0) |
|
return r; |
|
if ((r = sshkey_serialize_sk(key, b)) != 0) |
|
return r; |
|
|
|
return 0; |
|
} |
|
|
/* |
/* |
* Check FIDO/W3C webauthn signatures clientData field against the expected |
* Check FIDO/W3C webauthn signatures clientData field against the expected |
* format and prepare a hash of it for use in signature verification. |
* format and prepare a hash of it for use in signature verification. |
|
|
/* .alloc = */ NULL, |
/* .alloc = */ NULL, |
/* .cleanup = */ ssh_ecdsa_sk_cleanup, |
/* .cleanup = */ ssh_ecdsa_sk_cleanup, |
/* .equal = */ ssh_ecdsa_sk_equal, |
/* .equal = */ ssh_ecdsa_sk_equal, |
|
/* .ssh_serialize_public = */ ssh_ecdsa_sk_serialize_public, |
}; |
}; |
|
|
const struct sshkey_impl sshkey_ecdsa_sk_impl = { |
const struct sshkey_impl sshkey_ecdsa_sk_impl = { |