summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | hscrypto: Remove Credential.Nick Mathewson2023-01-251-19/+2
| | | | | | | | | | | | | | | | | | It turns out that the credential is only calculated as an intermediate result in order to blind keys and produce the subcredential. As such, it has no need to leave the hscrypto module.
| * | hscrypto: add a note about maybe replacing epoch_offset with voting_intervalNick Mathewson2023-01-251-0/+3
| | |
| * | hscrypto: Explain why vanity onions require expanded secret keys.Nick Mathewson2023-01-251-1/+11
| | |
| * | hscrypto: document why we have keys in un-expanded formNick Mathewson2023-01-251-3/+12
| | |
| * | hscrypto: Note that maybe Duration is the wrong type to use.Nick Mathewson2023-01-251-0/+5
| | |
| * | hscrypto: Note the need for a Result rather than an OptionNick Mathewson2023-01-251-0/+4
| | |
| * | Apply several clarifications (and fixes for missing refs)Ian Jackson2023-01-253-1/+7
| | |
| * | hscrypto: Use derive_more, and derive Deref for public keys.Nick Mathewson2023-01-253-32/+4
| | |
| * | hscrypto: Revise TimePeriod to account for variable offset.Nick Mathewson2023-01-242-22/+34
| | | | | | | | | | | | | | | | | | | | | | | | Previously, the offset was set to 12 hours unconditionally (like the spec says). But based on a conversation on tor-dev, it seems that the offset should actually be 12 times the voting interval. I'm also opening an MR to change the spec.
| * | hscrypto: Add documentation for ClientSecretKeysNick Mathewson2023-01-241-0/+3
| | |
| * | Add a note about why we use ExpandedSecretKey for OnionIdSecretKeyNick Mathewson2023-01-242-2/+7
| | |
| * | hscrypto: Add our standard clippy warningsNick Mathewson2023-01-244-1/+66
| | | | | | | | | | | | | | | | | | (I have squashed the fixes for these warnings into the earlier commits in this branch, so it will look like I did everything right the first time.)
| * | hscrypto: Implement key blinding.Nick Mathewson2023-01-244-11/+233
| | | | | | | | | | | | | | | This implementation was made based on the specification, and then validated against itself, and against C Tor.
| * | hscrypto: Add an implementation for TimePeriodNick Mathewson2023-01-243-11/+120
| | | | | | | | | | | | | | | This required some API tweaks, which is probably to be expected; these time periods are a wonky kind of thing.
| * | hscrypto: Implement hs_mac.Nick Mathewson2023-01-243-2/+59
| | |
| * | hscrypto: Improve documentation for RendCookieNick Mathewson2023-01-241-1/+5
| | |
| * | hscrypto: use a macro to define our byte wrappers too.Nick Mathewson2023-01-243-10/+56
| | |
| * | hscrypto: Add and use a macro to define all PK types.Nick Mathewson2023-01-245-37/+92
| | |
| * | hscrypto: A couple of spelling fixes.Nick Mathewson2023-01-241-2/+2
| | |
| * | hscrypto: Associate each type with new name from rend-spec-v3.txtNick Mathewson2023-01-242-10/+12
| | |
* | | exportedapisketc: note that HTTP can be tricky.Nick Mathewson2023-01-261-0/+12
| | |
* | | Merge branch 'netdoc-builder' into 'main'eta2023-01-269-189/+504
|\ \ \ | | | | | | | | | | | | | | | | tor-netdoc: Provide NetdocEncoder (internal) See merge request tpo/core/arti!984
| * | | Add missing docsrs attributeIan Jackson2023-01-241-0/+1
| | | |
| * | | netdoc builder: Add two TODOs, prompted by testing experienceIan Jackson2023-01-241-0/+6
| | | |
| * | | netdoc builder test: Make a bigger dummy document and test reparsingIan Jackson2023-01-241-2/+26
| | | |
| * | | netdoc builder: Implement object() and add one test caseIan Jackson2023-01-242-2/+50
| | | |
| * | | netdoc-builder: Initial test case (no object yet)Ian Jackson2023-01-241-0/+47
| | | |
| * | | netdoc-builder: Provide new() methodIan Jackson2023-01-241-0/+7
| | | |
| * | | netdoc-builder: Implement ItemArgument for more needed typesIan Jackson2023-01-242-6/+45
| | | |
| * | | netdoc-builder: Remove some obsolete commentsIan Jackson2023-01-241-11/+0
| | | |
| * | | netdoc-builder: Move example into implementation doc commentIan Jackson2023-01-242-20/+16
| | | | | | | | | | | | | | | | Not actually tested yet
| * | | netdoc-builder: Implement most of the internal general doc builderIan Jackson2023-01-241-23/+83
| | | |
| * | | netdoc-builder api: Clarify docs for object()Ian Jackson2023-01-241-3/+8
| | | |
| * | | netdoc-builder api: Introduce ItemArgument traitIan Jackson2023-01-241-2/+32
| | | |
| * | | netdoc-builder api: Have .item() return ItemBuilderIan Jackson2023-01-241-1/+1
| | | | | | | | | | | | | | | | This was a slip in the design doc.
| * | | netdoc-builder api: Abolish `K` generic on ItemEncoderIan Jackson2023-01-241-5/+7
| | | | | | | | | | | | | | | | | | | | We're going to eagerly encode the keyword, so this will be easy. Removing the generic simplifies the API.
| * | | netdoc-builder api: Don't promise to check args_raw_string valueIan Jackson2023-01-241-3/+0
| | | |
| * | | netdoc-builder api: Make ItemEncoder methods consume and return selfIan Jackson2023-01-241-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | This will actually make the pattern in the example work. The mentioned `ItemArgument` trait will arrive soon.
| * | | netdoc-builder api: Move internal API into actual code file (fmt)Ian Jackson2023-01-241-6/+7
| | | |
| * | | netdoc-builder api: Move internal API into actual code fileIan Jackson2023-01-243-135/+180
| | | | | | | | | | | | | | | | Motion, plus the bare minimum needed to make it compile.
| * | | netdoc-builder api: Remove obsolete proposed `Item` changesIan Jackson2023-01-241-24/+0
| | | | | | | | | | | | | | | | We decided against these in !969
| * | | tor-netdoc: tokenize: Provide BASE64_PEM_MAX_LINEIan Jackson2023-01-241-0/+3
| | | | | | | | | | | | | | | | We'll use this in the netdoc builder, but it naturally lives here.
| * | | tor-netdoc: tokenize: Rename to tag_keywords_ok, document, exposeIan Jackson2023-01-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename from _keyword_, since this actually checks the *multiple* keywords that can appear in an object's BEGIN line. Make this clear in the doc comment. Expose it for use by the netdoc builder.
| * | | tor-netdoc: tokenize: crate-Expose object::BEGIN_STR etc.Ian Jackson2023-01-241-6/+11
| | | | | | | | | | | | | | | | The document builder wants these too.
| * | | tor-netdoc: Make AuthCertKwd pub(crate)Ian Jackson2023-01-241-1/+1
| | | | | | | | | | | | | | | | For now, this will be useful in a test.
| * | | tor-bytes: impl Writeable for &impl WriteableIan Jackson2023-01-242-0/+7
| | | |
| * | | tor-bytes: Implement conversion from EncodeError to BugIan Jackson2023-01-242-1/+17
| | | |
* | | | Merge branch 'env' into 'main'eta2023-01-2640-41/+41
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | shell: use /usr/bin/env instead of absolute paths See merge request tpo/core/arti!988
| * | | | maint: update shellcheck_all with /usr/bin/envEmil Engler2023-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This commit updates the shellcheck_all script, in order to look for /usr/bin/env, instead of /bin.
| * | | | shell: use /usr/bin/env instead of absolute pathsEmil Engler2023-01-2540-40/+40
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the shebang in all shell scripts from absolute paths (such as `/bin/bash` or `/usr/bin/python3`) to the `/usr/bin/env` binary with the accompanying interpreter as it's argument. The reason for this are as follows: - NixOS cannot work with absolute paths - BSD systems install their packages in /usr/local/bin