Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

@libp2p/crypto

libp2p key and crypto primitives: Ed25519, secp256k1, ECDSA P-256, P-384 and P-521, and RSA keys, ephemeral ECDH, AES-GCM, HMAC and PBKDF2.

In short

What to know.

Algorithms
Ed25519, ECDSA on secp256k1, ECDSA on P-256, ECDSA on P-384 and 7 more7 of 11 would be broken by a large quantum computer.
Advisories
1 in the storeOSV last read 3 December 2026, 16:49 UTC.
What to do
Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from Ed25519, ECDSA on secp256k1, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, RSA signatures, ECDH (Weierstrass curves) before large quantum computers exist.

1 in the store

Advisories

Advisories for @libp2p/crypto
AdvisoryIdAffected versionsFixed inSource's rating
libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-authGHSA-rvfr-cqwq-rc4jbefore 5.1.22Fixed in 5.1.22Rated High

1 listed

Findings

Findings for @libp2p/crypto
FindingIdSeverityUpdated
libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-authNMN-2026-0083Severity High3 December 2026

Reviewed 3 December 2026

Sources

  1. npm registry metadata for @libp2p/cryptoregistry.npmjs.orgRetrieved 3 December 2026
  2. @libp2p/crypto API documentationlibp2p.github.ioRetrieved 3 December 2026
  3. @libp2p/crypto key module sourceraw.githubusercontent.comRetrieved 3 December 2026

Full record

Package
@libp2p/crypto
Ecosystem
npm
Role
Toolkit
Status
Not marked deprecated by its registry or maintainers.
Reviewed
Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
Advisories read
Last read from OSV 3 December 2026, 16:49 UTC
Findings
1 listed above.

Algorithms it provides

What a large quantum computer would change

  • Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.Ed25519, ECDSA on secp256k1, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, RSA signatures, ECDH (Weierstrass curves)
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.AES-GCM, HMAC, PBKDF2
  • Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation

Notes describe algorithm families, not any one project.