Unfortunately, I couldn't find any reference to that question. Does Tor implement an own key generation for the RSA keys (and the other keys) or does the OR use an external implementation for that?

And if they implement it by themselves, how does the algorithm work exactly?


It uses external libraries. Specifically OpenSSL, curve25519-donna, and ed25519 (either donna or ref10).

The code for key generation can be found in:

curve25519 - gitweb.torproject.org/tor.git/tree/src/common/crypto_curve25519.c?id=tor-

ed25519 - gitweb.torproject.org/tor.git/tree/src/common/crypto_ed25519.c?id=tor-

RSA - gitweb.torproject.org/tor.git/tree/src/common/crypto.c?id=tor-

(I can't post >2 links)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.