Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentscrates.io

sodiumoxide

Rust bindings to libsodium: X25519 crypto_box, XSalsa20-Poly1305 secretbox, Ed25519 signatures, ChaCha20-Poly1305 and AES-256-GCM AEADs, SHA-2, BLAKE2b, HMAC, Argon2 and scrypt password hashing.

In short

What to know.

Algorithms
X25519, Ed25519, XSalsa20-Poly1305, ChaCha20-Poly1305 and 7 more2 of 11 would be broken by a large quantum computer.
Advisories
5 in the storeOSV last read 3 December 2026, 16:50 UTC.
What to do
Its source marks it deprecated or unmaintained: plan a replacement. Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from X25519, Ed25519 before large quantum computers exist.

5 in the store

Advisories

Advisories for sodiumoxide
AdvisoryIdAffected versionsFixed inSource's rating
sodiumoxide is deprecatedRUSTSEC-2021-0137from 0.0.0-0, no fix listed
scalarmult() vulnerable to degenerate public keysGHSA-2wc6-2rcj-8v76before 0.0.14Fixed in 0.0.14Rated Moderate
Incorrect Comparison in sodiumoxideGHSA-wrvc-72w7-xpmjfrom 0.2.0 before 0.2.5Fixed in 0.2.5Rated Critical
generichash::Digest::eq always return trueRUSTSEC-2019-0026from 0.0.0-0 before 0.2.5Fixed in 0.2.5
scalarmult() vulnerable to degenerate public keysRUSTSEC-2017-0001from 0.0.0-0 before 0.0.14Fixed in 0.0.14

3 listed

Findings

Findings for sodiumoxide
FindingIdSeverityUpdated
sodiumoxide is deprecatedNMN-2026-01133 December 2026
generichash::Digest::eq always return trueNMN-2026-01113 December 2026
scalarmult() vulnerable to degenerate public keysNMN-2026-01093 December 2026

Reviewed 3 December 2026

Sources

  1. crates.io metadata for sodiumoxidecrates.ioRetrieved 3 December 2026
  2. sodiumoxide 0.2.7 README on crates.iocrates.ioRetrieved 3 December 2026
  3. sodiumoxide documentation: all itemsdocs.rsRetrieved 3 December 2026
  4. RustSec advisory RUSTSEC-2021-0137: sodiumoxide is deprecatedrustsec.orgRetrieved 3 December 2026
  5. sodiumoxide README (deprecation notice)raw.githubusercontent.comRetrieved 3 December 2026

Full record

Package
sodiumoxide
Ecosystem
crates.io
Role
Binding to a native library
Status
Marked deprecated or unmaintained by its source.
Notes
Deprecated by its maintainers: the README is headed [DEPRECATED], the repository is archived, and RustSec lists it as unmaintained (RUSTSEC-2021-0137), suggesting alternatives such as libsodium-sys-stable, dryoc and the RustCrypto nacl-compat crates.
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:50 UTC
Findings
3 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.X25519, Ed25519
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.XSalsa20-Poly1305, ChaCha20-Poly1305, AES-GCM, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), BLAKE2 (BLAKE2b, BLAKE2s), HMAC, Argon2, scrypt
  • Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation

Notes describe algorithm families, not any one project.