-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
047bf65
commit deb852b
Showing
1 changed file
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |