go_sshkeys/_ref/ed25519/public.adoc

32 lines
749 B
Plaintext

==== Public
===== Structure
Public keys are stored in the following structure:
.Key Structure
[source,text,linenums]
----
0.0 uint32 allocator for 0.0.0 (4 bytes)
0.0.0 Public key key type string (ASCII bytes)
1.0 uint32 allocator for 1.0.0 (4 bytes)
1.0.0 Public key payload (bytes)
----
===== 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)
0.0.0 7373682d65643235353139 ("ssh-ed25519")
1.0 00000020 (32)
1.0.0 44388bc973684dd66857131122bff212c983bba6b162c4e97cd11f73c39d97b0 (bytes)
----