xref: /netbsd/external/bsd/file/dist/magic/magdir/mcrypt (revision 4c89978f)
12e1c341aSchristos
21b108b8bSchristos#------------------------------------------------------------------------------
3*4c89978fSchristos# $File: mcrypt,v 1.6 2022/02/08 18:51:45 christos Exp $
41b108b8bSchristos# Mavroyanopoulos Nikos <nmav@hellug.gr>
51b108b8bSchristos# mcrypt:   file(1) magic for mcrypt 2.2.x;
6*4c89978fSchristos# URL: 		https://en.wikipedia.org/wiki/Mcrypt
7*4c89978fSchristos#		http://fileformats.archiveteam.org/wiki/MCrypt
8*4c89978fSchristos# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt.trid.xml
9*4c89978fSchristos# Update:	Joerg Jenderek
10*4c89978fSchristos# Note:		called by TrID "mcrypt encrypted (v2.5)"
111b108b8bSchristos0	string		\0m\3		mcrypt 2.5 encrypted data,
12*4c89978fSchristos#!:mime	application/octet-stream
13*4c89978fSchristos!:mime	application/x-crypt-nc
14*4c89978fSchristos!:ext	nc
151b108b8bSchristos>4	string		>\0		algorithm: %s,
161b108b8bSchristos>>&1	leshort		>0		keysize: %d bytes,
171b108b8bSchristos>>>&0	string		>\0		mode: %s,
181b108b8bSchristos
19*4c89978fSchristos# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt-22.trid.xml
20*4c89978fSchristos# Note:		called by TrID "mcrypt encrypted (v2.2)"
211b108b8bSchristos0	string		\0m\2		mcrypt 2.2 encrypted data,
22*4c89978fSchristos#!:mime	application/octet-stream
23*4c89978fSchristos!:mime	application/x-crypt-nc
24*4c89978fSchristos# no example
25*4c89978fSchristos!:ext	nc
261b108b8bSchristos>3	byte		0		algorithm: blowfish-448,
271b108b8bSchristos>3	byte		1		algorithm: DES,
281b108b8bSchristos>3	byte		2		algorithm: 3DES,
291b108b8bSchristos>3	byte		3		algorithm: 3-WAY,
301b108b8bSchristos>3	byte		4		algorithm: GOST,
311b108b8bSchristos>3	byte		6		algorithm: SAFER-SK64,
321b108b8bSchristos>3	byte		7		algorithm: SAFER-SK128,
331b108b8bSchristos>3	byte		8		algorithm: CAST-128,
341b108b8bSchristos>3	byte		9		algorithm: xTEA,
351b108b8bSchristos>3	byte		10		algorithm: TWOFISH-128,
361b108b8bSchristos>3	byte		11		algorithm: RC2,
371b108b8bSchristos>3	byte		12		algorithm: TWOFISH-192,
381b108b8bSchristos>3	byte		13		algorithm: TWOFISH-256,
391b108b8bSchristos>3	byte		14		algorithm: blowfish-128,
401b108b8bSchristos>3	byte		15		algorithm: blowfish-192,
411b108b8bSchristos>3	byte		16		algorithm: blowfish-256,
421b108b8bSchristos>3	byte		100		algorithm: RC6,
431b108b8bSchristos>3	byte		101		algorithm: IDEA,
441b108b8bSchristos>4	byte		0		mode: CBC,
451b108b8bSchristos>4	byte		1		mode: ECB,
461b108b8bSchristos>4	byte		2		mode: CFB,
471b108b8bSchristos>4	byte		3		mode: OFB,
481b108b8bSchristos>4	byte		4		mode: nOFB,
491b108b8bSchristos>5	byte		0		keymode: 8bit
501b108b8bSchristos>5	byte		1		keymode: 4bit
511b108b8bSchristos>5	byte		2		keymode: SHA-1 hash
521b108b8bSchristos>5	byte		3		keymode: MD5 hash
53