Skip to content

Commit bbd64c3

Browse files
viyatb-oaicodex
andcommitted
chore(exec-server): finish Noise dependency update
Co-authored-by: Codex <noreply@openai.com>
1 parent 9803566 commit bbd64c3

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

codex-rs/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codex-rs/exec-server/src/noise_channel.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use clatter::bytearray::ByteArray;
1818
use clatter::constants::MAX_MESSAGE_LEN;
1919
use clatter::crypto::cipher::AesGcm;
2020
use clatter::crypto::dh::X25519;
21-
use clatter::crypto::kem::rust_crypto_ml_kem::MlKem768;
2221
use clatter::crypto::hash::Sha256;
22+
use clatter::crypto::kem::rust_crypto_ml_kem::MlKem768;
2323
use clatter::handshakepattern::noise_hybrid_ik;
2424
use clatter::traits::Cipher;
2525
use clatter::traits::Dh;
@@ -73,9 +73,7 @@ impl NoiseChannelPublicKey {
7373
}
7474

7575
/// Decode registry-provided key material before passing it to Clatter.
76-
fn decode(
77-
&self,
78-
) -> Result<(<X25519 as Dh>::PubKey, MlKem768PublicKey), NoiseChannelError> {
76+
fn decode(&self) -> Result<(<X25519 as Dh>::PubKey, MlKem768PublicKey), NoiseChannelError> {
7977
if self.suite != NOISE_CHANNEL_SUITE {
8078
return Err(NoiseChannelError::InvalidPublicKey(
8179
"unsupported Noise channel suite",
@@ -96,10 +94,7 @@ impl NoiseChannelPublicKey {
9694
));
9795
}
9896

99-
Ok((
100-
dh,
101-
MlKem768PublicKey::from_slice(kem.as_slice()),
102-
))
97+
Ok((dh, MlKem768PublicKey::from_slice(kem.as_slice())))
10398
}
10499
}
105100

0 commit comments

Comments
 (0)