Skip to main content

Module slow_crypto_span

Module slow_crypto_span 

Source
Expand description

Marks slow cryptographic operations (KDFs, RSA, ML-DSA) on the browser performance timeline.

On WASM, each operation becomes a performance.measure entry carrying Chrome DevTools extensibility metadata, so the DevTools Performance panel shows it in its own track:

  โ–พ Crypto
    Slow Crypto   [ Argon2id ]          [ RSA decrypt ]   [ ML-DSA sign ]

Outside of WASM the span compiles to a no-op.

Structsยง

SlowCryptoSpan ๐Ÿ”’
Measures a SlowCryptoOp from creation until drop.

Enumsยง

SlowCryptoOp ๐Ÿ”’
A slow cryptographic operation shown on the performance timeline.

Functionsยง

measure ๐Ÿ”’
Measures op for exactly as long as f runs.