• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / OpenSK / 16464802298
97%
2.1: 97%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: 2.1
Ran 23 Jul 2025 07:57AM UTC
Jobs 1
Files 38
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jul 2025 07:52AM UTC coverage: 97.15% (+0.1%) from 97.034%
16464802298

push

github

web-flow
Ed25519 in Env (#740)

* Moves Ed25519 into Env

The `ecdsa` trait is renamed to `ec_signing` to indicate that we can
implement more than one curve.
Also removes the `verify_prehash` from the EC trait. This function was
only used outside of the library, and in the function that needs it, we
use the ECDSA crate directly.
Similarly, other functions are only used in tests and now marked as
such.

* Removes test only EC functions

Makes cryptography easier to implement by removing some function that
were used for tests only. These tests are either rewritten or removed.

* Improves test coverage

`PrivateKey` is never cloned in tests, so the code was unused.
One new function was untested, so I added a test for it.

* Fixes Ed25519 to work with WebAuthn

We did not use the correct signature encoding, and the algorithm
identifier was not set in `ctap/mod.rs`.
Also, we now correctly parse from CBOR and check if the parameters make
sense in combination if Ed25519 is enabled.

* Splits the EC signing trait

There are two main differences between ECDSA and Ed25519 that were not
accounted for:

- The public key has x and y components for ECDSA, only x for Ed25519.
- The signature is DER encoded for ECDSA, and plain bytes for Ed25519.

There are new Ecdsa and Ed25519 traits that replaces their common
trait before.

193 of 197 new or added lines in 8 files covered. (97.97%)

1 existing line in 1 file now uncovered.

11898 of 12247 relevant lines covered (97.15%)

11469.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
96.99
3.66% libraries/opensk/src/api/private_key.rs
2
98.2
0.65% libraries/opensk/src/ctap/data_formats.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.99
3.66% libraries/opensk/src/api/private_key.rs
Jobs
ID Job ID Ran Files Coverage
1 16464802298.1 23 Jul 2025 07:57AM UTC 38
97.15
GitHub Action Run
Source Files on build 16464802298
  • Tree
  • List 38
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d1be8f55 on github
  • Prev Build on develop (#16369700748)
  • Next Build on develop (#16468652914)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc