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