gnu 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #------------------------------------------------------------------------------
  2. # $File: gnu,v 1.17 2016/07/16 22:17:04 christos Exp $
  3. # gnu: file(1) magic for various GNU tools
  4. #
  5. # GNU nlsutils message catalog file format
  6. #
  7. # GNU message catalog (.mo and .gmo files)
  8. 0 string \336\22\4\225 GNU message catalog (little endian),
  9. >6 leshort x revision %d.
  10. >4 leshort >0 \b%d,
  11. >>8 lelong x %d messages,
  12. >>36 lelong x %d sysdep messages
  13. >4 leshort =0 \b%d,
  14. >>8 lelong x %d messages
  15. 0 string \225\4\22\336 GNU message catalog (big endian),
  16. >4 beshort x revision %d.
  17. >6 beshort >0 \b%d,
  18. >>8 belong x %d messages,
  19. >>36 belong x %d sysdep messages
  20. >6 beshort =0 \b%d,
  21. >>8 belong x %d messages
  22. # GnuPG
  23. # The format is very similar to pgp
  24. 0 string \001gpg GPG key trust database
  25. >4 byte x version %d
  26. # Note: magic.mime had 0x8501 for the next line instead of 0x8502
  27. 0 beshort 0x8502 GPG encrypted data
  28. !:mime text/PGP # encoding: data
  29. # This magic is not particularly good, as the keyrings don't have true
  30. # magic. Nevertheless, it covers many keyrings.
  31. 0 ubeshort-0x9901 <2
  32. >3 byte 4
  33. >>4 bedate x GPG key public ring, created %s
  34. !:mime application/x-gnupg-keyring
  35. # Symmetric encryption
  36. 0 leshort 0x0d8c
  37. >4 leshort 0x0203
  38. >>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher)
  39. >>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher)
  40. >>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher)
  41. >>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher)
  42. >>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher)
  43. >>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher)
  44. >>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher)
  45. >>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher)
  46. >>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher)
  47. >>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher)
  48. # GnuPG Keybox file
  49. # <http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD>
  50. # From: Philipp Hahn <hahn@univention.de>
  51. 0 belong 32
  52. >4 byte 1
  53. >>8 string KBXf GPG keybox database
  54. >>>5 byte 1 version %d
  55. >>>16 bedate x \b, created-at %s
  56. >>>20 bedate x \b, last-maintained %s
  57. # Gnumeric spreadsheet
  58. # This entry is only semi-helpful, as Gnumeric compresses its files, so
  59. # they will ordinarily reported as "compressed", but at least -z helps
  60. 39 string =<gmr:Workbook Gnumeric spreadsheet
  61. # From: James Youngman <jay@gnu.org>
  62. # gnu find magic
  63. 0 string \0LOCATE GNU findutils locate database data
  64. >7 string >\0 \b, format %s
  65. >7 string 02 \b (frcode)
  66. # Files produced by GNU gettext
  67. 0 long 0xDE120495 GNU-format message catalog data
  68. 0 long 0x950412DE GNU-format message catalog data
  69. # gettext message catalogue
  70. 0 search/1024 \nmsgid
  71. >&0 search/1024 \nmsgstr GNU gettext message catalogue text
  72. !:strength +100
  73. !:mime text/x-po