gnu 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #------------------------------------------------------------------------------
  2. # $File: gnu,v 1.15 2014/02/06 14:21:02 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. # GnuPG Keybox file
  47. # <http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD>
  48. # From: Philipp Hahn <hahn@univention.de>
  49. 0 belong 32
  50. >4 byte 1
  51. >>8 string KBXf GPG keybox database
  52. >>>5 byte 1 version %d
  53. >>>16 bedate x \b, created-at %s
  54. >>>20 bedate x \b, last-maintained %s
  55. # Gnumeric spreadsheet
  56. # This entry is only semi-helpful, as Gnumeric compresses its files, so
  57. # they will ordinarily reported as "compressed", but at least -z helps
  58. 39 string =<gmr:Workbook Gnumeric spreadsheet
  59. # From: James Youngman <jay@gnu.org>
  60. # gnu find magic
  61. 0 string \0LOCATE GNU findutils locate database data
  62. >7 string >\0 \b, format %s
  63. >7 string 02 \b (frcode)
  64. # Files produced by GNU gettext
  65. 0 long 0xDE120495 GNU-format message catalog data
  66. 0 long 0x950412DE GNU-format message catalog data
  67. # gettext message catalogue
  68. 0 regex \^msgid\ GNU gettext message catalogue text
  69. !:mime text/x-po