Skip to content

Commit

Permalink
chore: Update magic file
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Dec 10, 2024
1 parent 047bf65 commit deb852b
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions assets/abcrypt.magic
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
# abcrypt encrypted file
# abcrypt: file(1) magic for abcrypt encrypted file
# <https://github.com/sorairolake/abcrypt/blob/develop/docs/spec/FORMAT.adoc>
0 string abcrypt abcrypt encrypted file
0 string abcrypt abcrypt encrypted data
!:mime application/x-abcrypt
!:ext abcrypt
>7 ubyte x - version %d
# version 0
>7 ubyte 0
>>8 ulelong x \b, m = %d
>>12 ulelong x \b, t = %d
>>16 ulelong x \b, p = %d
>>8 use argon2-parameters
# version 1
>7 ubyte 1
>>8 ulelong <3 \b, Argon2 type:
>>>8 ulelong 0 Argon2d
>>>8 ulelong 1 Argon2i
>>>8 ulelong 2 Argon2id
>>12 ulelong x \b, Argon2 version: %#x
>>16 ulelong x \b, m = %d
>>20 ulelong x \b, t = %d
>>24 ulelong x \b, p = %d
>>8 use argon2-type
>>12 use argon2-version
>>16 use argon2-parameters

# Argon2 type
0 name argon2-type
>0 ulelong 0 \b, Argon2d
>0 ulelong 1 \b, Argon2i
>0 ulelong 2 \b, Argon2id

# Argon2 version
0 name argon2-version
>0 ulelong x \b, Argon2 version %#x

# Argon2 parameters
0 name argon2-parameters
>0 ulelong x \b, m=%u
>4 ulelong x \b, t=%u
>8 ulelong x \b, p=%u

0 comments on commit deb852b

Please sign in to comment.