mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix key-component names for ed25519.
When I implemented the puttygen --dump option recently, my aim was that all the components related to the public key would have names beginning with "public_", and the private components' names should begin with "private_". Anything not beginning with either is a _parameter of the system_, i.e. something that can safely be shared between multiple users' key pairs without giving any of them the ability to break another's key. (In particular, in integer DSA, p, q and g are unprefixed, y is labelled as public, and x as private. In principle, p,q,g are safe to share; I think the only reason nobody bothers is that standardisation is more difficult than generating a fresh prime every time. In elliptic-curve DSA, the effort equation reverses, because finding a good curve is a pain, so everybody standardises on one of a small number of well-known ones.) Anyway. This is all very well except that I left the 'public' prefix off the EdDSA x and y values. Now fixed.
This commit is contained in:
parent
921118dbea
commit
55ed53d498
4
sshecc.c
4
sshecc.c
@ -683,8 +683,8 @@ static key_components *eddsa_components(ssh_key *key)
|
||||
|
||||
mp_int *x, *y;
|
||||
ecc_edwards_get_affine(ek->publicKey, &x, &y);
|
||||
key_components_add_mp(kc, "affine_x", x);
|
||||
key_components_add_mp(kc, "affine_y", y);
|
||||
key_components_add_mp(kc, "public_affine_x", x);
|
||||
key_components_add_mp(kc, "public_affine_y", y);
|
||||
mp_free(x);
|
||||
mp_free(y);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user