summaryrefslogtreecommitdiff
path: root/crates/tor-llcrypto/tests/misc.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add a from_hex method for RsaIdentity.Nick Mathewson2022-03-041-2/+13
| | | | | | | | | | | | | We perform this operation in a bunch of places, and most of them use hex::decode(). That's not great, since hex::decode() has to do heap allocation. This implementation uses hex::decode_to_slice(), which should be faster. (In the future we might choose to use one of the faster hex implementations, but I'm hoping that this change will be sufficient to get hex decoding out of our profiles.) Part of #377.
* tor-llcrypto: Add test case for RsaIdentity formattingIan Jackson2022-03-021-0/+19
| | | | | | | I'm going to change the code that does this, so add a test first to check the output doesn't change. At some point we should have more RSA tests.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+109
This will cause some pain for now, but now is really the best time to do this kind of thing.