IF Commons GitHub

Crypto: quality

passing

Results 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.

ConditionHoldsWhy not
its tests were in the runyes
no test failedyes
no open issue of severity high or criticalyes

Line coverage

98.1% of 1124 lines of 9 source files are reached by the library's tests. The least covered files:

FileLinesHitCovered
commons/crypto/src/cose.ts12512096%
commons/crypto/src/cms.ts23422797%
commons/crypto/src/dsse.ts16916597.6%
commons/crypto/src/sigv4.ts10310198.1%
commons/crypto/src/webauthn.ts25725498.8%
commons/crypto/src/md5.ts9393100%
commons/crypto/src/crypt.ts7777100%
commons/crypto/src/uuid.ts4444100%
commons/crypto/src/sha256.ts2222100%

Tests

53 tests: 53 passed, 0 failed, 0 skipped, 0 planned or other.

Slowest

TestFileResultTime
SHA-512 crypt gives what glibc's crypt(3) gives, rounds clamped as glibc clamps themsuite/crypt.test.tspassed2034 ms
a salt from bytes is of crypt's alphabet, and a password hashed with it verifiessuite/crypt.test.tspassed922 ms
a payload signed with RSASSA-PKCS1-v1_5 SHA-256 verifies, by the key's idsuite/dsse.test.tspassed147 ms
a payload signed with RSA-PSS SHA-256 verifies, by the key's idsuite/dsse.test.tspassed56 ms
sign then verify gives the payload back, for any payload and payload type (Ed25519 and ECDSA P-256)suite/dsse.test.tspassed31 ms
content encrypted to recipients is opened by each of them, and is what was encryptedsuite/cms.test.tspassed26 ms
the lengths around the padding boundary, whole and a byte at a time, give the digests of a reference MD5suite/md5.test.tspassed18 ms
the digest taken a piece at a time, cut anywhere, is the digest of the wholesuite/md5.test.tspassed7 ms
a payload signed with ECDSA P-521 verifies, by the key's idsuite/dsse.test.tspassed6 ms
an authentication is refused for a bad signature, a counter that goes back, and the wrong challenge, origin, RP ID or credentialsuite/webauthn.test.tspassed5 ms

History

The last 6 runs in which the library's tests ran, oldest first.

Tests: 53, latest 53
Pass rate: 100 %, latest 100
Time: 1 to 4 s, latest 3

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

Titles, headings, exports, tables, columns and requirements. Esc closes.