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