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

google / OpenSK / 16339847182
97%
2.1: 97%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: 2.1
Ran 17 Jul 2025 08:19AM 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

17 Jul 2025 08:14AM UTC coverage: 97.026% (-0.08%) from 97.108%
16339847182

push

github

web-flow
Makes `PrivateKey` take actual private keys (#737)

* Makes `PrivateKey` take actual private keys

Before, it would store their seed bytes in a `Secret`.
While zeroization helps with some attacks, we didn't leave it to the
cryptography implementation to further protect the information.

This introduces a new `Env` type dependency in `PrivateKey`.
Instead of forwarding it to both types that store `PrivateKey`, namely
`CredentialSource` and `PublicKeyCredentialSource`, we make them hold a
wrapped version of that private key. This has several advantages:

- We now iterate over stored credentials and filter them more easily
  without having to decrypt the private key material.
- Private keys wrapping moved out of high level data types, and closer
  to the cryptographic implementation.

The latter is useful for removing `to_slice` in `SecretKey`, and
replacing it with a more generic `wrap`, so that private key material
does not have to leave hardware cryptography.

The second goal this PR prepares for is to move Ed25519 into `Env`'s
crypto API.

* Slightly more precise `PrivateKey` API

* Removes unnecessary explicit deref

185 of 194 new or added lines in 7 files covered. (95.36%)

11874 of 12238 relevant lines covered (97.03%)

11496.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
93.41
-4.43% libraries/opensk/src/api/private_key.rs
Jobs
ID Job ID Ran Files Coverage
1 16339847182.1 17 Jul 2025 08:19AM UTC 38
97.03
GitHub Action Run
Source Files on build 16339847182
  • Tree
  • List 38
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9be188b4 on github
  • Prev Build on develop (#15995220350)
  • Next Build on develop (#16369700748)
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