Crypto: quality
passingResults of the run of the commit 8df3cc3b89 at 2026-11-22 16:24 UTC (the run) that made this site; a library whose suite was not run in it has none.
The library: Crypto.
Quality gate
The library holds every condition of the gate.
| Condition | Holds | Why not |
|---|---|---|
| its tests were in the run | yes | |
| no test failed | yes | |
| no open issue of severity high or critical | yes |
Line coverage
98.1% of 1124 lines of 9 source files are reached by the library's tests. The least covered files:
| File | Lines | Hit | Covered |
|---|---|---|---|
commons/crypto/src/cose.ts | 125 | 120 | 96% |
commons/crypto/src/cms.ts | 234 | 227 | 97% |
commons/crypto/src/dsse.ts | 169 | 165 | 97.6% |
commons/crypto/src/sigv4.ts | 103 | 101 | 98.1% |
commons/crypto/src/webauthn.ts | 257 | 254 | 98.8% |
commons/crypto/src/md5.ts | 93 | 93 | 100% |
commons/crypto/src/crypt.ts | 77 | 77 | 100% |
commons/crypto/src/uuid.ts | 44 | 44 | 100% |
commons/crypto/src/sha256.ts | 22 | 22 | 100% |
Tests
53 tests: 53 passed, 0 failed, 0 skipped, 0 planned or other.
Slowest
| Test | File | Result | Time |
|---|---|---|---|
| SHA-512 crypt gives what glibc's crypt(3) gives, rounds clamped as glibc clamps them | suite/crypt.test.ts | passed | 2034 ms |
| a salt from bytes is of crypt's alphabet, and a password hashed with it verifies | suite/crypt.test.ts | passed | 922 ms |
| a payload signed with RSASSA-PKCS1-v1_5 SHA-256 verifies, by the key's id | suite/dsse.test.ts | passed | 147 ms |
| a payload signed with RSA-PSS SHA-256 verifies, by the key's id | suite/dsse.test.ts | passed | 56 ms |
| sign then verify gives the payload back, for any payload and payload type (Ed25519 and ECDSA P-256) | suite/dsse.test.ts | passed | 31 ms |
| content encrypted to recipients is opened by each of them, and is what was encrypted | suite/cms.test.ts | passed | 26 ms |
| the lengths around the padding boundary, whole and a byte at a time, give the digests of a reference MD5 | suite/md5.test.ts | passed | 18 ms |
| the digest taken a piece at a time, cut anywhere, is the digest of the whole | suite/md5.test.ts | passed | 7 ms |
| a payload signed with ECDSA P-521 verifies, by the key's id | suite/dsse.test.ts | passed | 6 ms |
| an authentication is refused for a bad signature, a counter that goes back, and the wrong challenge, origin, RP ID or credential | suite/webauthn.test.ts | passed | 5 ms |
History
The last 6 runs in which the library's tests ran, oldest first.
Requirements
9 requirements: 6 proved, 0 partly (a test skipped or planned), 0 failing, 3 with no test recorded.
Not proved by a passing test: 0001-crypto FR-007, 0001-crypto FR-008, 0001-crypto FR-009