Tor was initially funded by the Naval Research Lab (which is broadly similar to DARPA), and from a quick google, has received funding grants from the NSF and Department of State.