Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.
This repository was archived by the owner on May 26, 2022. It is now read-only.

Rationale for mac storage algorithm  #681

Open
@FreekPaans

Description

@FreekPaans

Hi,

I'm reading https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition and am wondering about the (security) design decisions for the mac storage, specifically:

  • Why is the ciphertext concatenated to the decrypted key, instead of just using the decryption key?
  • Why is the 2nd 16 leftmost bytes used from the decryption key as input to the hash, instead of the full key?

Perhaps this is common knowledge and therefore ignorance on my part, but I guess it would be nice if it's documented somewhere too.

Regards,

-Freek

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