Skip to content

Releases: r4gus/keylib

0.3.0

04 Jan 10:38
Compare
Choose a tag to compare

Changes

  • CtapHid.handle doesn't accept a reference to a Auth struct anymore and now either returns nil or a struct { cmd: Cmd, cid: Cid, data: []const u8 } where cmd is the received command, cid is the channel id, and data is the data related to the command (e.g. cbor encoded CTAP2 command). This allows you to act on specific CTAPHID commands. You can call iterator() on the returned struct.
  • Auth.handle now expects two arguments. The first is a pointer to a array of 7609 bytes (the max msg size of CTAPHID); this will probably change in the future. The second argument is the CBOR command. The Auth.handle function will write its response to the struct and then return a slice with the message. The slice references the array.

For an overview on how to use the new API, see README.md.

0.2.1

02 Jan 21:36
Compare
Choose a tag to compare

All commands now share the same function signature. This allows users to swap out the default callbacks with their own ones.

0.2.0

21 Dec 23:04
Compare
Choose a tag to compare

Changes

  • Users can now choose the std.rand.Random impl the authenticator should use. The default is std.crypto.random.
  • Users can now choose the timestamp function the authenticator should use (fn () i64). The default is std.time.milliTimestamp
  • Users now have to specify what Random impl should be used for CtapHid. This is a breaking change! If you upgrade to this version you have to pass the RNG to CtapHid.init() as second argument.

Hash: 1220641561f120bf75991cecbe314fd2ffaa7c3d8dcc7db98b493f1666759ac62779

0.1.0

03 Dec 16:59
Compare
Choose a tag to compare
added version string