Looking at the Magic library (magic.util.hash), it uses SHA2-384 as default. However, from a quick research I found that SHA-2 224, 256, 384 and 512 variants are not immune to length extension attacks.
I found that SHA-2 512/224 and 512/256 are immune to length extension attacks and are also part of FIPS 180-4 specification.
Can you make SHA-2 512/224 and 512/256 available in Magic?
Looking at the Magic library (magic.util.hash), it uses SHA2-384 as default. However, from a quick research I found that SHA-2 224, 256, 384 and 512 variants are not immune to length extension attacks.
I found that SHA-2 512/224 and 512/256 are immune to length extension attacks and are also part of FIPS 180-4 specification.
Can you make SHA-2 512/224 and 512/256 available in Magic?