Commit graph

4 commits

Author SHA1 Message Date
Matthew Wild
4767b89822 spec: Suppress some harmless luacheck warnings in tests 2023-01-13 14:53:40 +00:00
Matthew Wild
99748c5655 util.paseto: Add support for v3.local tokens 2023-01-13 14:38:05 +00:00
Matthew Wild
e12c9a83df util.paseto: Drop custom wrappers around key objects
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.
2022-07-11 14:30:39 +01:00
Matthew Wild
ae07086502 util.paseto: Add tests based on official PASETO test vectors
Unfortunately there are only a few relevant ones, but they did help catch some
bugs.
2022-07-11 14:10:07 +01:00