BlockchainCommons / WIPs-IETF-draft-envelope

The envelope protocol specifies a format for hierarchical binary data built on CBOR.
https://blockchaincommons.github.io/WIPs-IETF-draft-envelope/draft-mcnally-envelope.html
Other
1 stars 4 forks source link

Poly1305 is referred to as a HMAC, which it isn't #4

Closed simonratner closed 1 year ago

simonratner commented 1 year ago

Several places in https://blockchaincommons.github.io/WIPs-IETF-draft-envelope/draft-mcnally-envelope.html refer to HMAC: Sections 1.5, 2.2.3, and 3.3.

For example:

When used with envelopes, the crypto-msg construct aad (additional authenticated data) field contains the digest of the plaintext, authenticating the declared digest using the Poly1305 HMAC.

I believe Poly1305 isn't technically an HMAC (which refers to a specific MD-hash-based construction). Replacing with MAC without narrowing it further is probably fine.