xref: /dragonfly/contrib/file/magic/Magdir/mcrypt (revision ec1c3f3a)
1
2#------------------------------------------------------------------------------
3# $File: mcrypt,v 1.6 2022/02/08 18:51:45 christos Exp $
4# Mavroyanopoulos Nikos <nmav@hellug.gr>
5# mcrypt:   file(1) magic for mcrypt 2.2.x;
6# URL: 		https://en.wikipedia.org/wiki/Mcrypt
7#		http://fileformats.archiveteam.org/wiki/MCrypt
8# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt.trid.xml
9# Update:	Joerg Jenderek
10# Note:		called by TrID "mcrypt encrypted (v2.5)"
110	string		\0m\3		mcrypt 2.5 encrypted data,
12#!:mime	application/octet-stream
13!:mime	application/x-crypt-nc
14!:ext	nc
15>4	string		>\0		algorithm: %s,
16>>&1	leshort		>0		keysize: %d bytes,
17>>>&0	string		>\0		mode: %s,
18
19# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt-22.trid.xml
20# Note:		called by TrID "mcrypt encrypted (v2.2)"
210	string		\0m\2		mcrypt 2.2 encrypted data,
22#!:mime	application/octet-stream
23!:mime	application/x-crypt-nc
24# no example
25!:ext	nc
26>3	byte		0		algorithm: blowfish-448,
27>3	byte		1		algorithm: DES,
28>3	byte		2		algorithm: 3DES,
29>3	byte		3		algorithm: 3-WAY,
30>3	byte		4		algorithm: GOST,
31>3	byte		6		algorithm: SAFER-SK64,
32>3	byte		7		algorithm: SAFER-SK128,
33>3	byte		8		algorithm: CAST-128,
34>3	byte		9		algorithm: xTEA,
35>3	byte		10		algorithm: TWOFISH-128,
36>3	byte		11		algorithm: RC2,
37>3	byte		12		algorithm: TWOFISH-192,
38>3	byte		13		algorithm: TWOFISH-256,
39>3	byte		14		algorithm: blowfish-128,
40>3	byte		15		algorithm: blowfish-192,
41>3	byte		16		algorithm: blowfish-256,
42>3	byte		100		algorithm: RC6,
43>3	byte		101		algorithm: IDEA,
44>4	byte		0		mode: CBC,
45>4	byte		1		mode: ECB,
46>4	byte		2		mode: CFB,
47>4	byte		3		mode: OFB,
48>4	byte		4		mode: nOFB,
49>5	byte		0		keymode: 8bit
50>5	byte		1		keymode: 4bit
51>5	byte		2		keymode: SHA-1 hash
52>5	byte		3		keymode: MD5 hash
53