More flexible crypto config

未關閉
#196 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 23 天內回覆

@ManManson 已經在處理了。

開始於 2025年4月27日。

  • #375 來自 @ManManson —— 未關閉

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
cpp

研究方向

該 issue 沒有指定檔案、測試或進入點。首先閱讀 issue #197 以及列出的動機和 WIP 工作;要完成這項工作,需要解決範圍問題,並完成執行階段可用性、密碼套件廣告與初始化、非 x86 平台上的 libsodium,以及 ChaCha20-Poly1305 這些項目。

由索引模型根據 Issue 內容生成。

描述

enhancement

With the protocol supporting negotiable cipher suites, some additional changes to support a more flexible crypto config seem like they could be useful.

Motivations:

There may be situations where:

  • A dependent project wishes to link with a specific crypto library (ex. libsodium) that does not offer AES-GCM on all systems (possibly depending on processor architecture / extensions).
  • Additional ciphers (like the commented-out k_ESteamNetworkingSocketsCipher_CHACHA20_POLY1305) with different performance characteristics or system / crypto library compatibility are desired.
  • A dependent project is fine with advertising "best-effort" encryption, which falls back to advertising "null cipher"-only if a particular system + crypto library combination cannot support any.

Additionally (although not considered in-scope at this time, but the work in this should help):

  • A dependent project may not wish to link GameNetworkingSockets with any of its supported crypto libraries (and may be fine with GameNetworkingSockets itself not implementing encryption at all, perhaps because it already handles this).
Tasks (WIP):
  • AES-GCM runtime availability check
    (#197)
  • Advertise / initialize AES_GCM cipher only if supported
    (#197)
  • Support building with libsodium on non-x86/x86_64 CPUs (with an appropriate default warning that this means there will not be AES-GCM support).
  • Add support for k_ESteamNetworkingSocketsCipher_CHACHA20_POLY1305. (@fletcherdvalve: Should this be the
    IETF variant of ChaCha20-Poly1305?)
主要語言
C++
星號
10.1k
分支
781
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ValveSoftware/GameNetworkingSockets 的其他 Issue

查看 ValveSoftware/GameNetworkingSockets 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。