-
Notifications
You must be signed in to change notification settings - Fork 230
Closed
Labels
cipherBlock and stream cipher crateBlock and stream cipher cratecrypto-macMessage Authentication Code (MAC) crateMessage Authentication Code (MAC) crateuniveral-hashUniversal Hash Function (UHF) crateUniversal Hash Function (UHF) crate
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cipherBlock and stream cipher crateBlock and stream cipher cratecrypto-macMessage Authentication Code (MAC) crateMessage Authentication Code (MAC) crateuniveral-hashUniversal Hash Function (UHF) crateUniversal Hash Function (UHF) crate