Skip to content

KMAC_128 / KMAC_128XOF #792

Description

@NickBrighten

The implementation of the KMAC is not compatible to KMAC_128 and KMAC_128XOF.

I don't know exactly where the error lies, but I suspect it is in the file kmac.c at line 164.

So you can try some online tools to evaluate - to eventually reproduce the error of the code:

https://hashonline.net/macs/kmac128/
https://emn178.github.io/online-tools/kmac128/
https://emn178.github.io/online-tools/kmacxof128/

https://www.lddgo.net/en/encrypt/kmac-calculate-verify (please enter the correct parameter)

The KMAC_256 and the KMAC_256_XOF works fine within the tools.

I can also not explain it in the NIST document here: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-185.pdf (at site 10)
Everything looks fine, but the results are very different.

Hope you can explain it and fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions