Add cryptography-rs: Rust cryptography library#15347
Open
darrelllong wants to merge 1 commit intogoogle:masterfrom
Open
Add cryptography-rs: Rust cryptography library#15347darrelllong wants to merge 1 commit intogoogle:masterfrom
darrelllong wants to merge 1 commit intogoogle:masterfrom
Conversation
39 cargo-fuzz targets covering: - Block ciphers: AES, Camellia, CAST-128, DES/TDES, Grasshopper, Magma, PRESENT, SEED, Serpent, Simon, SM4, Speck, Twofish - Stream ciphers: ChaCha20, Rabbit, Salsa20, SNOW 3G, ZUC - Post-quantum: ML-KEM (FIPS 203), ML-DSA (FIPS 204) - Public-key: ECDSA, EdDSA, ECDH, Ed25519, DSA, DH, ElGamal, EC-ElGamal, Edwards-ElGamal, Paillier, Rabin, Cocks, Schmidt-Samoa, ECIES, RSA-OAEP, RSA-PSS - Symmetric primitives: all AEAD modes (GCM, EAX, CCM, OCB, ChaCha20-Poly1305), CBC, CTR, and AES Key Wrap - Hash/MAC/KDF: MD5, SHA-1/2/3 family, HMAC, HKDF - CSPRNG: CTR_DRBG-AES-256 Each target enforces correctness invariants (encrypt/decrypt roundtrip, sign/verify, DH property) in addition to no-panic on arbitrary input.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
darrelllong is integrating a new project: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Project
Homepage: https://github.com/darrelllong/cryptography
Language: Rust
License: BSD 2-Clause
A pure-Rust implementation of classical and post-quantum cryptographic
primitives built from specifications, with no third-party crypto
dependencies.
Fuzz targets (39 total)
Block ciphers: AES, Camellia, CAST-128, DES/TDES, Grasshopper, Magma,
PRESENT, SEED, Serpent, Simon, SM4, Speck, Twofish
Stream ciphers: ChaCha20, Rabbit, Salsa20, SNOW 3G, ZUC
Post-quantum (NIST FIPS): ML-KEM (FIPS 203), ML-DSA (FIPS 204)
Public-key: ECDSA, EdDSA, ECDH, Ed25519, DSA, DH, ElGamal, EC-ElGamal,
Edwards-ElGamal, Paillier, Rabin, Cocks, Schmidt-Samoa, ECIES,
RSA-OAEP, RSA-PSS
Modes: GCM, EAX, CCM, OCB, ChaCha20-Poly1305, CBC, CTR, AES Key Wrap
Hash/MAC/KDF: MD5, SHA-1/2/3 family, HMAC, HKDF
CSPRNG: CTR_DRBG-AES-256
Invariants checked
Each target enforces correctness invariants (encrypt/decrypt roundtrip,
sign/verify roundtrip, Diffie-Hellman property, serialization roundtrip)
in addition to the standard no-panic-on-arbitrary-input guarantee.
Bugs already found
Initial fuzzing runs found three bugs that have been fixed:
pos + seq_lenandpos + lenwith crafted large-length fields)
q > p(panic in any private-keyoperation triggered by specific ciphertext inputs)