Skip to content

Process partially incorrect for block HMAC-SHA256 check #1

@xolider

Description

@xolider

Hello !
First of all, thank your documentation ! It helped me a lot while building this library -> Kteepass

I found a mistake in one of your images explaining the HMAC-SHA256 check process for KDBX block stream:
image

At the top right of this diagram, you have to concat the block payload (n bytes), n (4 bytes), and i (8 bytes). computing the HMAC only on the block is not enough and lead to an inexact HMAC-SHA256.
Example of working process: here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions