Skip to content

New hash algorithms SHA-2 512/224 and 512/256 #48

@panga

Description

@panga

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions