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
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| sodiumoxide is deprecated | RUSTSEC-2021-0137 | from 0.0.0-0, no fix listed | ||
| scalarmult() vulnerable to degenerate public keys | GHSA-2wc6-2rcj-8v76 | before 0.0.14 | Fixed in 0.0.14 | Rated Moderate |
| Incorrect Comparison in sodiumoxide | GHSA-wrvc-72w7-xpmj | from 0.2.0 before 0.2.5 | Fixed in 0.2.5 | Rated Critical |
| generichash::Digest::eq always return true | RUSTSEC-2019-0026 | from 0.0.0-0 before 0.2.5 | Fixed in 0.2.5 | |
| scalarmult() vulnerable to degenerate public keys | RUSTSEC-2017-0001 | from 0.0.0-0 before 0.0.14 | Fixed in 0.0.14 |
3 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| sodiumoxide is deprecated | NMN-2026-0113 | 3 December 2026 | |
| generichash::Digest::eq always return true | NMN-2026-0111 | 3 December 2026 | |
| scalarmult() vulnerable to degenerate public keys | NMN-2026-0109 | 3 December 2026 |
Reviewed 3 December 2026
Sources
- crates.io metadata for sodiumoxidecrates.ioRetrieved 3 December 2026
- sodiumoxide 0.2.7 README on crates.iocrates.ioRetrieved 3 December 2026
- sodiumoxide documentation: all itemsdocs.rsRetrieved 3 December 2026
- RustSec advisory RUSTSEC-2021-0137: sodiumoxide is deprecatedrustsec.orgRetrieved 3 December 2026
- sodiumoxide README (deprecation notice)raw.githubusercontent.comRetrieved 3 December 2026
Full record
- Package
- sodiumoxide
- Ecosystem
- crates.io
- Role
- Binding to a native library
- Repository
- github.com/sodiumoxide/sodiumoxide
- 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
- X25519 key-exchangeClassical public keyBroken by Shor's algorithm
- Ed25519 signatureClassical public keyBroken by Shor's algorithm
- XSalsa20-Poly1305 aeadSymmetricWeakened by Grover's search
- ChaCha20-Poly1305 aeadSymmetricWeakened by Grover's search
- AES-GCM aeadSymmetricWeakened by Grover's search
- SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) hashHashWeakened by Grover's search
- BLAKE2 (BLAKE2b, BLAKE2s) hashHashWeakened by Grover's search
- HMAC macSymmetricWeakened by Grover's search
- Argon2 password-hashSymmetricWeakened by Grover's search
- scrypt password-hashSymmetricWeakened by Grover's search
- Cryptographically strong random number generation rngOtherNot applicable
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.