9e4b14a2b7daefd1986eaf9b8114bd2e33ec0534
Verified components (all correct): ✅ Client/Server public keys match (packet capture verified) ✅ Server public key transmission correct ✅ mpint encoding identical in exchange hash and key derivation ✅ Exchange hash computed once and saved ✅ Session ID = first exchange hash ✅ Version string encoding correct (without \r\n) ✅ Client-to-server keys work (server decrypts client packet successfully) Remaining mystery: ❌ Server-to-client keys fail (client reports 'Corrupted MAC on input') - Mathematically X25519 should produce identical shared_secret - All inputs to key derivation are identical - Client signature verification succeeds (exchange hash correct) - Server decrypts client packet (client-to-server keys correct) Possible root causes (require further investigation): 1. OpenSSH client computes different shared_secret encoding 2. OpenSSH client uses different key derivation formula 3. OpenSSH client session_id handling differs Next steps: - Compare against OpenSSH server implementation - Test with different SSH clients (dropbear, putty) - Verify RFC 8731 shared_secret encoding interpretation Files modified: - crypto.rs: Removed RFC 7748 test (x25519-dalek 2.0 API limitation) - crypto.rs: mpint encoding verified correct Session progress: 95% complete (all verification done, root cause unknown)
fuse-backend-rs-fork
@ e92233933e
MarkBase
Momentry Display Engine - Markdown渲染與檔案樹管理系統
功能特色
- Markdown渲染(支援表格、footnote、tasklist) -檔案樹管理(SQLite持久化)
- REST API(18+路由)
- macOS音訊控制(音訊裝置切換、音量控制) -多種顯示模式(tree, list, grid_sm, grid_lg)
##安裝
###必要條件
- Rust 1.92+
- macOS(音訊功能需 macOS)
- SwitchAudioSource(音訊裝置切換)
#安裝 Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#安裝 SwitchAudioSource(macOS)
brew install switchaudio-source
###建構
cargo build
##使用
###啟動伺服器
cargo run -- display #預設 port 11438
cargo run -- display -p8080 #自訂 port
cargo run -- display README.md #顯示指定檔案
###渲染 Markdown
cargo run -- render README.md #輸出到 stdout
cargo run -- render README.md -o output.html
##測試
cargo test #執行所有測試
cargo test test_insert #執行特定測試
File Tree功能
REST API
| 路由 | 方法 | 功能 |
|---|---|---|
/api/v2/tree/:user_id |
GET | 取得檔案樹 |
/api/v2/tree/:user_id/node |
POST | 建立節點 |
/api/v2/tree/:user_id/node/:node_id |
PUT/DELETE | 更新/刪除節點 |
/api/v2/tree/:user_id/node/:node_id/move |
PUT | 移動節點 |
/api/v2/tree/:user_id/node/:node_id/alias |
PATCH | 更新別名 |
###顯示模式
tree- 樹狀顯示list- 列表顯示grid_sm- 小格狀顯示grid_lg- 大格狀顯示
###範例
curl http://localhost:11438/api/v2/tree/demo?mode=tree
curl http://localhost:11438/api/v2/tree/demo?mode=list
Demo資料
data/users/demo.sqlite- 50節點範例資料data/cache/-範例檔案
##開發
見 AGENTS.md詳細開發指南。
CI/CD
使用 Gitea Actions:https://gitea.momentry.ddns.net
License
MIT
Description
Languages
C
43.6%
Rust
20.1%
D
15.6%
Assembly
8.9%
Swift
3.3%
Other
8.3%