gnu 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #------------------------------------------------------------------------------
  2. # $File: gnu,v 1.14 2012/10/03 23:38:12 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 beshort 0x9901 GPG key public ring
  32. !:mime application/x-gnupg-keyring
  33. # Symmetric encryption
  34. 0 leshort 0x0d8c
  35. >4 leshort 0x0203
  36. >>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher)
  37. >>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher)
  38. >>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher)
  39. >>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher)
  40. >>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher)
  41. >>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher)
  42. >>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher)
  43. >>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher)
  44. >>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher)
  45. >>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher)
  46. # Gnumeric spreadsheet
  47. # This entry is only semi-helpful, as Gnumeric compresses its files, so
  48. # they will ordinarily reported as "compressed", but at least -z helps
  49. 39 string =<gmr:Workbook Gnumeric spreadsheet
  50. # From: James Youngman <jay@gnu.org>
  51. # gnu find magic
  52. 0 string \0LOCATE GNU findutils locate database data
  53. >7 string >\0 \b, format %s
  54. >7 string 02 \b (frcode)
  55. # Files produced by GNU gettext
  56. 0 long 0xDE120495 GNU-format message catalog data
  57. 0 long 0x950412DE GNU-format message catalog data
  58. # gettext message catalogue
  59. 0 regex \^msgid\ GNU gettext message catalogue text
  60. !:mime text/x-po