Commit Graph

7 Commits (fbf3f89bcca7a37dfdbc631589f255e84fb2ea4f)

Author SHA1 Message Date
Aydin Mercan fbf3f89bcc
mod: update dependency 2021-12-04 11:50:25 +03:00
Aydin Mercan 67699f4a7c
jwk, internal/publickey: unmarshal -> decode
Currently encoding/json accepts duplicate fields in the json.
Since https://github.com/golang/go/issues/48298 got accepted,
we should use the decoder interface with Decoder.DisallowDuplicateFields
turned on when available. Its exact behavior will determine whether
json.RawMessage's will be re-unmarshaled or will follow the byte reader
path.
2021-12-04 10:55:00 +03:00
Aydin Mercan 8bc5579fad nix: add nix flake
Since I use NixOS, its only natural to add a flake development.
2021-11-08 15:44:10 +03:00
Aydin Mercan 82785c70eb internal/publickey: move from public jwk add tests
Moving algorithm specific jwk code to an internal module.
Not caring about it should be fine(?) to the end user as long
as the library remains vigilantic about it. Also, the crypto.PublicKey
in JWK isn't meant to be used directly anyway.
2021-11-03 20:41:03 +03:00
Aydin Mercan c69930c738 readme: expand the scope and minor additions
The following have been added to the README:
- Build requirements
- Disclaimer
- Goals and non-goals
- License
2021-11-02 12:11:23 +03:00
Aydin Mercan d014dca76d ci/github: fix typo 2021-11-02 10:50:03 +03:00
Aydin Mercan 17de1b90f9 initial commit
- Created the JWK definition with parsing key sets, needs more through
  poking for covering invalid state handling.

- Basic parsing tests with CI
2021-11-02 10:43:52 +03:00