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