Repository navigation
ssh-key v0.7.0 - #670
Merged
Merged
ssh-key v0.7.0#670
Conversation
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.
Security
ctutilsv0.4.8, which includes constant-time mask generation and comparison fixes (#610, RUSTSEC-2026-0385)rsabackend to v0.10, which fixes the upstream RSA decryption timing issue (#613, RUSTSEC-2023-0071)1..=1_048_576when reading or writing the KDF parameters and before deriving an OpenSSH encryption key (#624, #625)curve25519-dalekminimum to v5.1 fored25519andmldsa44-ed25519. This fixes an arithmetic error in the x86-64 AVX-512 backend (RUSTSEC-2026-0620)Added
Certificate::decode_asandpublic::KeyData::decode_as(#233)DotSshunderstd(#257, #259)ssh-rsa(RSA/SHA-1) signatures (#263)SshSigwithserde, using PEM for human-readable formats and the SSH binary encoding for other formats (#264)core::error::Errorforssh_key::Errorinno_stdbuilds (#303)rsa-sha2-256-cert-v01@openssh.comandrsa-sha2-512-cert-v01@openssh.comcertificate algorithm names (#311)rsaandsha1features. The default RSA signer uses SHA-512 (#315, #323)PrivateKey::from_ppkunder the newppkfeature (#324)HashforFingerprint(#330)std::io::ReadandWritewithread_opensshandwrite_openssh(#378)ssh-cipherandssh-encodingasssh_key::cipherandssh_key::encoding(#379)the
*_prehashand*_digestmethods andAssociatedHashAlg(#384, #385)KeyData::Certificate. Usecertificate()orinto_certificate()to extract one (#449)ssh-mldsa44-ed25519composite keys, signatures, and certificates, interoperable with OpenSSH 10.6 (#583)ssh-mldsa87-p384composite keys, signatures, and certificates fromdraft-ietf-sshm-composite-sigs-01(#654)alloc. Enable them independently withmldsa44-ed25519andmldsa87-p384(#655, #661)Changed
u64range. Thevalid_after_timeandvalid_before_timeaccessors now returnOption<SystemTime>(#209)key_size()(#269, #274, #275)Mpintintossh-encodingand retain thessh_key::Mpintre-export (#359)comment()accessors now requireallocand return&Comment. Useas_bytes(),as_str(), oras_str_lossy()to select a representation (#360)Error::RngFailure(#362)rsaordsaenabled,Mpintconversions useencoding::Uint(crypto_bigint::BoxedUint) in place ofnum_bigint_dig::BigUint(#362)impl AsRef<Path>(#378, #383)stdfeature no longer enablesstdin the underlying cryptographic backends (#394)rand_coreto v0.10,sec1to v0.8, andsha1andsha2to v0.11 (#466, #476, #480, #481)bcrypt-pbkdfto v0.11 and thesignaturetraits to v3 (#494, #501)subtle::ConstantTimeEqimplementations withctutils::CtEq(#507)hmacto v0.13 (#519)ssh_key::ErrorasError::Signature(#523)dsato v0.7,ed25519-dalekto v3, the NIST curve crates to v0.14, andargon2to v0.6 (#571, #572, #573, #582)sha2optional and enable it by default. With defaults disabled, enablesha2for fingerprints and certificate validation. The SSHSIG digest and prehash methods still work with an application-supplied SHA-2 implementation (#602)Decodeanddecode_asimplementations take&mut Decoder<impl Reader>(#618)Mpintstores unsigned magnitudes of up to 16384 bits. Decoding rejects negative values and encoding writes canonical SSH integers (#622)ssh-encoding's decoder constructors and derives for key types, preserving their wire formats and validation (#663, #664, #666)ssh-encodingandssh-cipherto v0.4 (#668, #669)Removed
rsabackend's size policy (#412)Mpint::from_positive_bytesandas_positive_bytes. Usefrom_bytesandas_bytesfor unsigned big-endian magnitudes (#622)Fixed
KeyDatawith its certificate algorithm name exactly once (#451)u64::MAXno-expiry sentinel in certificate system-time conversion (#504)sk-ecdsa-sha2-nistp256@openssh.comsignatures after the length-prefixed ECDSA signature (#532)getrandomfeature and re-export the matchinggetrandomcrate (#539)known_hostsentries (#619)Signature::try_from(&[u8])and binarySshSigdeserialization withserde(#631)iqmpwhen comparing RSA private keys (#635)