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