arti/crates
Gabriela Moldovan 17d965e894
keymgr: Do not expect x25519 keys to be stored as ed25519 ssh keys.
Previously, the Arti key store would store x25519 secret keys as ed25519
OpenSSH keys, which it would convert to x25519 upon loading (using the
conversion function added in !1297 (merged)). This approach isn't good
enough though: most people will probably want to bring their existing
x25519 keys, and in order to store those in OpenSSH format, we'd need
convert them to ed25519, which is impossible (because the secret part of
an x25519 key contains a SHA512'd secret, whereas the corresponding,
"un-expanded", ed25519 secret key contains the secret itself rather than
the SHA).

Now that `ssh-key` has support for ssh keys with [custom algorithm
names], we can store x25519 in OpenSSH format directly. This commit
changes the storage format used by the keymgr for x25519 client auth
keys (from ed25519-ssh to our own custom key type with an algorithm name
of `"x25519@torproject.org"`).

Closes #936

[custom algorithm names]: https://github.com/RustCrypto/SSH/pull/136
2023-08-16 10:43:28 +01:00
..
arti tor-error, arti: Bump backtrace to 0.3.68. 2023-08-15 16:34:31 +01:00
arti-bench Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
arti-client bridge config: Fix an error message slightly 2023-08-08 18:01:31 +01:00
arti-config Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
arti-hyper Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
arti-rpcserver Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
arti-testing Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
caret Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
equix Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
fs-mistrust Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
hashx Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
retry-error Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
safelog Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-async-utils Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-basic-utils Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-bytes Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-cell cell: make establish_intro accept impl<Into<HsMacKey>> 2023-08-14 13:15:00 -04:00
tor-cert Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-chanmgr Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-checkable Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-circmgr Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-config tor-config: Expand NoProjectDirs error message 2023-08-08 11:12:16 +01:00
tor-congestion Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-consdiff Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-dirclient Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-dirmgr Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-error tor-error, arti: Bump backtrace to 0.3.68. 2023-08-15 16:34:31 +01:00
tor-events Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-geoip Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-guardmgr Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-hsclient Merge branch 'future_proof_lints' into 'main' 2023-08-04 14:20:54 +00:00
tor-hscrypto hscrypto: Expose hs_mac as a SimpleMac. 2023-08-14 13:15:00 -04:00
tor-hspow Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-hsservice Start working on the backend for an IptEstablisher. 2023-08-14 13:57:49 -04:00
tor-keymgr keymgr: Do not expect x25519 keys to be stored as ed25519 ssh keys. 2023-08-16 10:43:28 +01:00
tor-linkspec Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-llcrypto llcrypto: New SimpleMac trait 2023-08-14 13:15:00 -04:00
tor-netdir Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-netdoc Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-persist Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-proto proto: Fix a type-complexity warning. 2023-08-14 13:15:40 -04:00
tor-protover Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-ptmgr Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-rpcbase Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-rtcompat Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-rtmock Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-socksproto Run add_warnings on all files. 2023-08-04 07:45:04 -04:00
tor-units Run add_warnings on all files. 2023-08-04 07:45:04 -04:00