ssh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Type: OpenSSH key files
  2. # From: Nicolas Collignon <tsointsoin@gmail.com>
  3. 0 string SSH\ PRIVATE\ KEY OpenSSH RSA1 private key,
  4. >28 string >\0 version %s
  5. 0 string -----BEGIN\ OPENSSH\ PRIVATE\ KEY----- OpenSSH private key
  6. 0 string ssh-dss\ OpenSSH DSA public key
  7. 0 string ssh-rsa\ OpenSSH RSA public key
  8. 0 string ecdsa-sha2-nistp256 OpenSSH ECDSA public key
  9. 0 string ecdsa-sha2-nistp384 OpenSSH ECDSA public key
  10. 0 string ecdsa-sha2-nistp521 OpenSSH ECDSA public key
  11. 0 string ssh-ed25519 OpenSSH ED25519 public key
  12. 0 string SSHKRL\n\0
  13. >8 ubelong 1 OpenSSH key/certificate revocation list, format %u
  14. >>12 ubequad x \b, version %llx
  15. >>>20 beqdate x \b, generated %s
  16. # From: Joerg Jenderek
  17. # URL: https://en.wikipedia.org/wiki/PuTTY
  18. # Reference: https://the.earth.li/~sgtatham/putty/latest/putty-0.73.tar.gz
  19. # /sshpubk.c
  20. 0 string PuTTY-User-Key-File- PuTTY Private Key File
  21. #!:mime text/plain
  22. # https://github.com/github/putty/blob/master/windows/installer.wxs
  23. !:mime application/x-putty-private-key
  24. !:ext ppk
  25. # version 1 or 2
  26. >20 string x \b, version %.1s
  27. # name of the algorithm like: ssh-dss ssh-rsa ecdsa-sha2-nistp256 ssh-ed25519
  28. >23 string x \b, algorithm %s
  29. # next line says "Encryption: " plus an encryption type like aes256-cbc or none
  30. >32 search/13 Encryption:\040 \b, Encryption
  31. >>&0 string x %s
  32. # next line says "Comment: " plus the comment string
  33. >>>&0 search/3 Comment:\040
  34. >>>>&0 string x "%s"