paseto-standard / paseto-spec

Specification for Platform Agnostic SEcurity TOkens (PASETO)
165 stars 9 forks source link

clarify that mac is returned from encrypt #6

Closed purificant closed 2 years ago

purificant commented 2 years ago

In Version 4 encrypt, step 6 computes mac. This value is then required in Version 4 decrypt step 7. It would be good to clarify that mac is returned as output from encrypt, because otherwise it is not accessible in decrypt.

paragonie-security commented 2 years ago

Good catch.