From deb852b35c079f0ca7e21fcefac921ebca708076 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Tue, 10 Dec 2024 15:01:40 +0900 Subject: [PATCH] chore: Update magic file --- assets/abcrypt.magic | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/assets/abcrypt.magic b/assets/abcrypt.magic index 382f50c..8dc7776 100644 --- a/assets/abcrypt.magic +++ b/assets/abcrypt.magic @@ -1,21 +1,30 @@ -# abcrypt encrypted file +# abcrypt: file(1) magic for abcrypt encrypted file # -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