Skip to content

Expose block nature of MAC functions? #216

@newpavlov

Description

@newpavlov

Most (if not all?) MAC constructs process messages in blocks. I think we either could add a BlockMac trait which would process messages in blocks (its state will not contain internal buffer for partially processed messages) and on top of which will be built a Mac implementation using wrapper defined in crypto-mac, or less invasive approach would be to add a trait similar to digest::BlockInput.

Exposing block nature could be helpful for RustCrypto/AEADs#74 and may reduce some amount of boilerplate if we are to follow the first option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cipherBlock and stream cipher cratecrypto-macMessage Authentication Code (MAC) crateuniveral-hashUniversal Hash Function (UHF) crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions