More flexible crypto config

Aberta
#196 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 23 dias

@ManManson já está trabalhando nisso.

Desde 27/4/2025.

  • #375 de @ManManson — aberto

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
25/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
cpp

Direção de pesquisa

A issue não menciona arquivos, testes nem pontos de entrada. Comece lendo a issue #197 e a motivação e as tarefas WIP listadas; considerá-la concluída exigiria resolver o escopo e concluir os itens de disponibilidade em runtime, anúncio e inicialização de cipher, libsodium em plataformas não x86 e ChaCha20-Poly1305.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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?)
Linguagem predominante
C++
Estrelas
10.1k
Forks
781
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ValveSoftware/GameNetworkingSockets

Todas as issues de ValveSoftware/GameNetworkingSockets

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.