This commit is contained in:
Alexander Medvedev committed 2026-07-04 15:14:55 +02:00
1 parent c60fa90ed8
commit 3aea5ee720
1 file changed
+2 -2
+2 -2
View File
@@ -215,13 +215,13 @@ impl BedrockClient {
}; };
let handshake_jwt = let handshake_jwt =
pumpkin_util::jwt::generate_handshake_jwt(&*server_private_key, &salt) pumpkin_util::jwt::generate_handshake_jwt(&server_private_key, &salt)
.map_err(LoginError::ChainValidationFailed)?; .map_err(LoginError::ChainValidationFailed)?;
let handshake_packet = CHandshake::new(handshake_jwt); let handshake_packet = CHandshake::new(handshake_jwt);
self.send_game_packet(&handshake_packet).await; self.send_game_packet(&handshake_packet).await;
let shared_secret = let shared_secret =
pumpkin_util::jwt::compute_shared_secret(&*server_private_key, &client_public_key); pumpkin_util::jwt::compute_shared_secret(&server_private_key, &client_public_key);
let mut hasher = Sha256::new(); let mut hasher = Sha256::new();
hasher.update(salt); hasher.update(salt);
hasher.update(shared_secret); hasher.update(shared_secret);