go_sshkeys/_ref/ed25519/public.adoc

32 lines
749 B
Plaintext
Raw Normal View History

2022-03-07 02:34:27 -05:00
==== Public
2022-03-07 03:42:09 -05:00
2022-03-07 02:34:27 -05:00
===== Structure
2022-03-07 03:42:09 -05:00
2022-03-07 02:34:27 -05:00
Public keys are stored in the following structure:
.Key Structure
[source,text,linenums]
----
0.0 uint32 allocator for 0.0.0 (4 bytes)
2022-03-07 03:42:09 -05:00
0.0.0 Public key key type string (ASCII bytes)
2022-03-07 02:34:27 -05:00
1.0 uint32 allocator for 1.0.0 (4 bytes)
2022-03-07 03:42:09 -05:00
1.0.0 Public key payload (bytes)
2022-03-07 02:34:27 -05:00
----
===== Example
.`id_ed25519.pub` Format
[source,text,linenums]
----
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQ4i8lzaE3WaFcTESK/8hLJg7umsWLE6XzRH3PDnZew This is a test key
----
.Structure Reference (Hex) (Decoded Base64 component only; `AAA...nZew`)
[source,text,linenums]
----
0.0 0000000b (11)
2022-03-07 03:42:09 -05:00
0.0.0 7373682d65643235353139 ("ssh-ed25519")
2022-03-07 02:34:27 -05:00
1.0 00000020 (32)
2022-03-07 03:42:09 -05:00
1.0.0 44388bc973684dd66857131122bff212c983bba6b162c4e97cd11f73c39d97b0 (bytes)
2022-03-07 02:34:27 -05:00
----