xref: /freebsd/contrib/file/magic/Magdir/aes (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1*43a5ec4eSXin LI
2*43a5ec4eSXin LI#------------------------------------------------------------------------------
3*43a5ec4eSXin LI# $File: aes,v 1.1 2020/08/18 21:20:22 christos Exp $
4*43a5ec4eSXin LI#
5*43a5ec4eSXin LI# aes: magic file for AES encrypted files
6*43a5ec4eSXin LI
7*43a5ec4eSXin LI# Summary:	AES Crypt Encrypted Data File
8*43a5ec4eSXin LI# From:		Joerg Jenderek
9*43a5ec4eSXin LI# URL:		https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
10*43a5ec4eSXin LI# Reference:	https://www.aescrypt.com/aes_file_format.html
11*43a5ec4eSXin LI0	string		AES
12*43a5ec4eSXin LI>3	ubyte		<3		AES encrypted data, version %u
13*43a5ec4eSXin LI#!:mime	application/aes
14*43a5ec4eSXin LI!:mime	application/x-aes-encrypted
15*43a5ec4eSXin LI!:ext	aes
16*43a5ec4eSXin LI# For Version 2 the encrypted file can have text tags
17*43a5ec4eSXin LI>>3	ubyte		=2
18*43a5ec4eSXin LI# length of an extension identifier and contents like: 0 24 33 38
19*43a5ec4eSXin LI#>>5	ubeshort	x		\b, tag length %u
20*43a5ec4eSXin LI#>>5	pstring/H	x		'%s'
21*43a5ec4eSXin LI# standard extension tags like CREATED_BY
22*43a5ec4eSXin LI>>>7	string		CREATED_BY	\b, created by
23*43a5ec4eSXin LI# software product, manufacturer like "SharpAESCrypt v1.3.3.0" "aescrypt (Windows GUI) 3.10" ...
24*43a5ec4eSXin LI>>>>&1	string		x		"%s"
25*43a5ec4eSXin LI# TODO: more other tags
26*43a5ec4eSXin LI# tag CREATED_DATE like YYYY-MM-DD
27*43a5ec4eSXin LI# tag CREATED_TIME like HH:MM:SS
28*43a5ec4eSXin LI#
29*43a5ec4eSXin LI
30