1835f6802SDirk Vogt 2ef01931fSBen Gras#------------------------------------------------------------------------------ 3*0a6a1f1dSLionel Sambuc# $File: gnu,v 1.15 2014/02/06 14:21:02 christos Exp $ 4ef01931fSBen Gras# gnu: file(1) magic for various GNU tools 5ef01931fSBen Gras# 6ef01931fSBen Gras# GNU nlsutils message catalog file format 7ef01931fSBen Gras# 808ff44c4SLionel Sambuc# GNU message catalog (.mo and .gmo files) 908ff44c4SLionel Sambuc 10ef01931fSBen Gras0 string \336\22\4\225 GNU message catalog (little endian), 1108ff44c4SLionel Sambuc>6 leshort x revision %d. 1208ff44c4SLionel Sambuc>4 leshort >0 \b%d, 1308ff44c4SLionel Sambuc>>8 lelong x %d messages, 1408ff44c4SLionel Sambuc>>36 lelong x %d sysdep messages 1508ff44c4SLionel Sambuc>4 leshort =0 \b%d, 1608ff44c4SLionel Sambuc>>8 lelong x %d messages 1708ff44c4SLionel Sambuc 18ef01931fSBen Gras0 string \225\4\22\336 GNU message catalog (big endian), 1908ff44c4SLionel Sambuc>4 beshort x revision %d. 2008ff44c4SLionel Sambuc>6 beshort >0 \b%d, 2108ff44c4SLionel Sambuc>>8 belong x %d messages, 2208ff44c4SLionel Sambuc>>36 belong x %d sysdep messages 2308ff44c4SLionel Sambuc>6 beshort =0 \b%d, 2408ff44c4SLionel Sambuc>>8 belong x %d messages 2508ff44c4SLionel Sambuc 26ef01931fSBen Gras 27ef01931fSBen Gras# GnuPG 28ef01931fSBen Gras# The format is very similar to pgp 29ef01931fSBen Gras0 string \001gpg GPG key trust database 30ef01931fSBen Gras>4 byte x version %d 31ef01931fSBen Gras# Note: magic.mime had 0x8501 for the next line instead of 0x8502 32ef01931fSBen Gras0 beshort 0x8502 GPG encrypted data 33ef01931fSBen Gras!:mime text/PGP # encoding: data 34ef01931fSBen Gras 35ef01931fSBen Gras# This magic is not particularly good, as the keyrings don't have true 36ef01931fSBen Gras# magic. Nevertheless, it covers many keyrings. 37ef01931fSBen Gras0 beshort 0x9901 GPG key public ring 38ef01931fSBen Gras!:mime application/x-gnupg-keyring 39ef01931fSBen Gras 4084d9c625SLionel Sambuc# Symmetric encryption 4184d9c625SLionel Sambuc0 leshort 0x0d8c 4284d9c625SLionel Sambuc>4 leshort 0x0203 4384d9c625SLionel Sambuc>>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher) 4484d9c625SLionel Sambuc>>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher) 4584d9c625SLionel Sambuc>>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher) 4684d9c625SLionel Sambuc>>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher) 4784d9c625SLionel Sambuc>>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher) 4884d9c625SLionel Sambuc>>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher) 4984d9c625SLionel Sambuc>>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher) 5084d9c625SLionel Sambuc>>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher) 5184d9c625SLionel Sambuc>>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher) 5284d9c625SLionel Sambuc>>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher) 5384d9c625SLionel Sambuc 5484d9c625SLionel Sambuc 55*0a6a1f1dSLionel Sambuc# GnuPG Keybox file 56*0a6a1f1dSLionel Sambuc# <http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD> 57*0a6a1f1dSLionel Sambuc# From: Philipp Hahn <hahn@univention.de> 58*0a6a1f1dSLionel Sambuc0 belong 32 59*0a6a1f1dSLionel Sambuc>4 byte 1 60*0a6a1f1dSLionel Sambuc>>8 string KBXf GPG keybox database 61*0a6a1f1dSLionel Sambuc>>>5 byte 1 version %d 62*0a6a1f1dSLionel Sambuc>>>16 bedate x \b, created-at %s 63*0a6a1f1dSLionel Sambuc>>>20 bedate x \b, last-maintained %s 64*0a6a1f1dSLionel Sambuc 65*0a6a1f1dSLionel Sambuc 66ef01931fSBen Gras# Gnumeric spreadsheet 67ef01931fSBen Gras# This entry is only semi-helpful, as Gnumeric compresses its files, so 68ef01931fSBen Gras# they will ordinarily reported as "compressed", but at least -z helps 69ef01931fSBen Gras39 string =<gmr:Workbook Gnumeric spreadsheet 70ef01931fSBen Gras 71ef01931fSBen Gras# From: James Youngman <jay@gnu.org> 72ef01931fSBen Gras# gnu find magic 73ef01931fSBen Gras0 string \0LOCATE GNU findutils locate database data 74ef01931fSBen Gras>7 string >\0 \b, format %s 75ef01931fSBen Gras>7 string 02 \b (frcode) 76ef01931fSBen Gras 77ef01931fSBen Gras# Files produced by GNU gettext 78ef01931fSBen Gras0 long 0xDE120495 GNU-format message catalog data 79ef01931fSBen Gras0 long 0x950412DE GNU-format message catalog data 8008ff44c4SLionel Sambuc 8108ff44c4SLionel Sambuc# gettext message catalogue 8208ff44c4SLionel Sambuc0 regex \^msgid\ GNU gettext message catalogue text 8308ff44c4SLionel Sambuc!:mime text/x-po 84