GithubHelp home page GithubHelp logo

arianvp / haskell-fido2 Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 3.0 583 KB

A library for parsing and validating webauthn/fido2 credentials

License: Apache License 2.0

Haskell 89.38% Nix 6.55% HTML 0.97% JavaScript 2.69% Shell 0.41%

haskell-fido2's Introduction

haskell-fido2's People

Contributors

arianvp avatar berdario avatar dependabot[bot] avatar duijf avatar ruuda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

haskell-fido2's Issues

Perhaps we can store the EC2 Points in compressed form (`x` coordinate plus sign) instead of `x/y` coordinates. This eliminates a whole bunch of cryptographic security vulnerabilities by construction

Perhaps we can store the EC2 Points in compressed form (x coordinate plus sign) instead of x/y coordinates. This eliminates a whole bunch of cryptographic security vulnerabilities by construction

Originally posted by @arianvp in #21 (comment)

Webauthn and COSE are footguns in this regard; and we should convert to compressed form as close to the boundary as possible. Check if cryptonite supports this.

Implement EdDSA

I think my employer will probably want to avoid EC256 if possible. EdDSA seems easier to implement though; as the signature format isn't legacy but COSE (though this is underspecified in the spec currently. See w3c/webauthn#1441)

Conformance tests

I was given access to the FIDO2 conformance tests by the FIDO Alliance.

They sent me a username and password in plain text (LOL. ironic) so I can download the test tool.

The test tool is an electron application and no source code is available. It only runs on Mac or Windows.

I don't think I can distribute it freely, so we can't add it to CI.

One downside of a `verify` that returns a bool is that you can forget to call it. One way to mitigate this (until we get Linear Haskell :smile:) is to fuse deserialization of the message with verification, something like

One downside of a verify that returns a bool is that you can forget to call it. One way to mitigate this (until we get Linear Haskell ๐Ÿ˜„) is to fuse deserialization of the message with verification, something like

verifyAndDecode :: PublicKey -> Message ByteString -> Signature -> Maybe DecodedMessage

is there a sensible decode operation for the message to do this with?

A different option would be to return some kind of validity token of which the constructor is not exposed, and to have remaining functions take such a token as input.

Originally posted by @ruuda in #23

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.