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

google / OpenSK / 16369700748
97%
2.1: 97%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: 2.1
Ran 18 Jul 2025 11:48AM 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

18 Jul 2025 11:43AM UTC coverage: 97.034% (+0.008%) from 97.026%
16369700748

push

github

web-flow
ECDSA private key wrapping responsibility into Env (#738)

* ECDSA private key wrapping responsibility into Env

This change is backwards incompatible. If you flash this firmware onto
an OpenSK with existing registrations, they will not work. This includes
all of resident keys, server-side keys and CTAP1 keys.

Before, we had a `key_wrap` function in `KeyStore` that, by default,
uses a symmetric key to encrypt ECDSA private keys for storage.

However, hardware cryptography users may not want to expose the private
key to OpenSK at all. Therefore, the ECDSA API has to change to not assume the
existance of `to_slice`, but merely a function to export and re-import
it, where we receive a wrapping of unknown length.

We also remove `wrap_key` in `KeyStore`, since this was the imperfect
in-library solution for the problem. Since the symmetric `wrap_key` was
stored in plaintext on flash, it didn't give the same security
guarantees as hardware can. Instead, if you want to secure plain text
storage of private key material, you have to implement your own measure.

This does not affect the security of private keys exported through any
CTAP API. This is only about local attackers with physical access to the
device.

* Fixes corupted attestation keys and credRandom

* Documents and tests determinism of export

98 of 100 new or added lines in 11 files covered. (98.0%)

1 existing line in 1 file now uncovered.

11843 of 12205 relevant lines covered (97.03%)

11509.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.92
0.48% libraries/opensk/src/api/persist.rs
1
93.33
-0.07% libraries/opensk/src/api/private_key.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.33
-0.07% libraries/opensk/src/api/private_key.rs
Jobs
ID Job ID Ran Files Coverage
1 16369700748.1 18 Jul 2025 11:48AM UTC 38
97.03
GitHub Action Run
Source Files on build 16369700748
  • Tree
  • List 38
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a2e38cb9 on github
  • Prev Build on develop (#16339847182)
  • Next Build on develop (#16464802298)
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