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