tor_relay_identity_ed25519 incorrect format #5

Open
opened 2025-07-13 15:38:20 +00:00 by irl · 0 comments
Owner

These should not be PEM encoded. They are a weird, I think Tor specific, encoding that looks like:

ed25519_master_id_secret_key:

00000000: 3d3d 2065 6432 3535 3139 7631 2d73 6563  == ed25519v1-sec
00000010: 7265 743a 2074 7970 6530 203d 3d00 0000  ret: type0 ==...
00000020: 0880 fe10 7886 9c07 4c94 8ecd 03fb 4934  ....x...L.....I4
00000030: efa2 89dd fee0 7c01 6ae9 8cb4 3d4b 3764  ......|.j...=K7d
00000040: 82ee 3503 2448 6392 af83 3f93 9a5e 7b15  ..5.$Hc...?..^{.
00000050: 681a b932 3f94 cc75 8b96 4af1 650c e07a  h..2?..u..J.e..z

ed25519_master_id_public_key:

00000000: 3d3d 2065 6432 3535 3139 7631 2d70 7562  == ed25519v1-pub
00000010: 6c69 633a 2074 7970 6530 203d 3d00 0000  lic: type0 ==...
00000020: 7a50 4a9f 4f73 afa9 da4d 7f0f eb6c eb9c  zPJ.Os...M...l..
00000030: b1ce 405d 1530 e257 32fd 2696 c6bb a860  ..@].0.W2.&....`

These should be output as base64 encoded to avoid having to deal with weird binary values.

These should not be PEM encoded. They are a weird, I think Tor specific, encoding that looks like: ed25519_master_id_secret_key: ``` 00000000: 3d3d 2065 6432 3535 3139 7631 2d73 6563 == ed25519v1-sec 00000010: 7265 743a 2074 7970 6530 203d 3d00 0000 ret: type0 ==... 00000020: 0880 fe10 7886 9c07 4c94 8ecd 03fb 4934 ....x...L.....I4 00000030: efa2 89dd fee0 7c01 6ae9 8cb4 3d4b 3764 ......|.j...=K7d 00000040: 82ee 3503 2448 6392 af83 3f93 9a5e 7b15 ..5.$Hc...?..^{. 00000050: 681a b932 3f94 cc75 8b96 4af1 650c e07a h..2?..u..J.e..z ``` ed25519_master_id_public_key: ``` 00000000: 3d3d 2065 6432 3535 3139 7631 2d70 7562 == ed25519v1-pub 00000010: 6c69 633a 2074 7970 6530 203d 3d00 0000 lic: type0 ==... 00000020: 7a50 4a9f 4f73 afa9 da4d 7f0f eb6c eb9c zPJ.Os...M...l.. 00000030: b1ce 405d 1530 e257 32fd 2696 c6bb a860 ..@].0.W2.&....` ``` These should be output as base64 encoded to avoid having to deal with weird binary values.
abel was assigned by irl 2025-07-13 15:38:23 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ops/terraform-provider-tor#5
No description provided.