Home | History | Annotate | Line # | Download | only in magdir
      1 # Type:	OpenSSH key files
      2 # From:	Nicolas Collignon <tsointsoin (a] gmail.com>
      3 # Update:	Joerg Jenderek
      4 # URL:		https://en.wikipedia.org/wiki/Secure_Shell_Protocol
      5 
      6 0	string	SSH\040PRIVATE\040KEY	OpenSSH RSA1 private key,
      7 >28	string	>\0			version %s
      8 0	string	-----BEGIN\040OPENSSH\040PRIVATE\040KEY-----	OpenSSH private key
      9 !:mime	application/x-pem-file
     10 # https://www.rfc-editor.org/rfc/rfc5958
     11 0	string	-----BEGIN\040PRIVATE\040KEY-----	OpenSSH private key (no password)
     12 #!:mime		text/plain
     13 !:mime		text/x-ssh-private-key
     14 !:ext		key
     15 0	string	-----BEGIN\040ENCRYPTED\040PRIVATE\040KEY-----	OpenSSH private key (with password)
     16 # https://download.qemu.org/qemu-9.0.0.tar.xz
     17 # qemu-9.0.0/roms/skiboot/libstb/crypto/mbedtls/tests/data_files/format_gen.pub
     18 0	string	-----BEGIN\040PUBLIC\040KEY-----		OpenSSH public key
     19 #!:mime		text/plain
     20 !:mime		text/x-ssh-public-key
     21 !:ext		pub
     22 
     23 # Reference:	http://mark0.net/download/triddefs_xml.7z/defs/p/pub-ssh-dss.trid.xml
     24 # Note:		called "SSH-DSS Public key" by TrID
     25 0	string	ssh-dss\040		OpenSSH DSA public key
     26 #!:mime		text/plain
     27 !:mime		text/x-ssh-public-key
     28 !:ext		pub
     29 # Reference:	http://mark0.net/download/triddefs_xml.7z/defs/p/pub-ssh-rsa.trid.xml
     30 # Note:		called "SSH-RSA Public key" by TrID
     31 0	string	ssh-rsa\040		OpenSSH RSA public key
     32 #!:mime		text/plain
     33 !:mime		text/x-ssh-public-key
     34 !:ext		pub
     35 0	string	ecdsa-sha2-nistp256	OpenSSH ECDSA public key
     36 #!:mime		text/plain
     37 !:mime		text/x-ssh-public-key
     38 !:ext		pub
     39 # https://cvsweb.openbsd.org/src/usr.bin/ssh/PROTOCOL.u2f?annotate=HEAD
     40 0	string	sk-ecdsa-sha2-nistp256 (a] openssh.com	OpenSSH U2F ECDSA public key
     41 #!:mime		text/plain
     42 !:mime		text/x-ssh-public-key
     43 !:ext		pub
     44 0	string	ecdsa-sha2-nistp384	OpenSSH ECDSA public key
     45 #!:mime		text/plain
     46 !:mime		text/x-ssh-public-key
     47 !:ext		pub
     48 0	string	ecdsa-sha2-nistp521	OpenSSH ECDSA public key
     49 #!:mime		text/plain
     50 !:mime		text/x-ssh-public-key
     51 !:ext		pub
     52 0	string	ssh-ed25519		OpenSSH ED25519 public key
     53 #!:mime		text/plain
     54 !:mime		text/x-ssh-public-key
     55 !:ext		pub
     56 0	string	sk-ssh-ed25519 (a] openssh.com	OpenSSH U2F ED25519 public key
     57 #!:mime		text/plain
     58 !:mime		text/x-ssh-public-key
     59 !:ext		pub
     60 
     61 
     62 
     63 0	string	SSHKRL\n\0
     64 >8	ubelong	1		OpenSSH key/certificate revocation list, format %u
     65 >>12	ubequad	x		\b, version %llx
     66 >>>20	beqdate	x		\b, generated %s
     67 
     68 # From:		Joerg Jenderek
     69 # URL:		https://en.wikipedia.org/wiki/PuTTY
     70 # Reference:	https://the.earth.li/~sgtatham/putty/latest/putty-0.73.tar.gz
     71 #		/sshpubk.c
     72 0	string		PuTTY-User-Key-File-	PuTTY Private Key File
     73 #!:mime	text/plain
     74 # https://github.com/github/putty/blob/master/windows/installer.wxs
     75 !:mime	application/x-putty-private-key
     76 !:ext	ppk
     77 # version 1 or 2
     78 >20	string		x			\b, version %.1s
     79 # name of the algorithm like: ssh-dss ssh-rsa ecdsa-sha2-nistp256 ssh-ed25519
     80 >23	string		x			\b, algorithm %s
     81 # next line says "Encryption: " plus an encryption type like aes256-cbc or none
     82 >32	search/13	Encryption:\040		\b, Encryption
     83 >>&0	string		x			%s
     84 # next line says "Comment: " plus the comment string
     85 >>>&0	search/3	Comment:\040
     86 >>>>&0	string		x			"%s"
     87 
     88