aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_paseto_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.paseto: Drop custom wrappers around key objectsMatthew Wild2022-07-111-1/+1
| | | | | | | | | | The PASETO spec recommends - no, *requires* - that implementations enforce type safety for keys, and e.g. do not pass them around as arbitrary byte strings. Typed wrapper objects are recommended. I originally followed this advice when starting the lib. However, key wrapping and type safety is now also a feature of util.crypto. All we're doing is duplicating it unnecessarily with this additional wrapper code.
* util.paseto: Add tests based on official PASETO test vectorsMatthew Wild2022-07-111-0/+118
Unfortunately there are only a few relevant ones, but they did help catch some bugs.