One-pass encryption/decryption
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- cryptography
Direzione di ricerca
Iniziate leggendo le implementazioni AEAD non verificate elencate nell’issue, a partire da aes-gcm, e confrontate i loro passaggi di crittografia e decrittografia. Definite il completamento come la conversione delle implementazioni applicabili al funzionamento a passaggio singolo e la determinazione dell’opportunità di collocare il supporto riutilizzabile nel aead crate, tenendo conto della limitazione della modalità SIV.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently all of the AEAD implementations do two passes over the plaintext/ciphertext when encrypting/decrypting respectively: for encryption, they encrypt the plaintext in the first pass, and authenticate it in the second pass. For decryption, it's vice versa.
A better approach is to pick a number of blocks to operate on in parallel and encrypt/authenticate or authenticate/decrypt in a single pass. This has better cache locality, e.g. when we encrypt data, store the resulting ciphertext, then load it again to do authentication, that is pretty much guaranteed to hit L1 cache when doing it in a single pass (and ideally we could hand off values still stored in e.g. SIMD registers)
This is a tracking issue for converting the implementations of these respective algorithms to be one pass. It also might be good to discuss ways we could have a generic implementation of one pass encryption/decryption in the aead crate (especially one specialized for the non-SIV stream-cipher + universal-hash use case) which can be reused across different algorithm implementations.
-
aes-gcm -
aes-gcm-siv† -
aes-siv† -
chacha20poly1305 -
xsalsa20poly1305
†NOTE: SIV modes by definition cannot support 1-pass encryption (because the first pass generates the synthetic IV, which must be known in advance before encryption can be performed). However, they can support 1-pass decryption, since the IV is known in advance in that case.
- Lingua principale
- Rust
- Stelle
- 961
- Fork
- 200
- Merge medio
- 1h 30m
- PR unite (30g)
- 6
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustCrypto/AEADs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RustCrypto/AEADs#864 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
RustCrypto/AEADs#765 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
RustCrypto/AEADs#755 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
RustCrypto/AEADs#706 · 1 commento · 1 reazione ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
RustCrypto/AEADs#660 · 7 commenti ·
Tutte le issue di RustCrypto/AEADs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
bug core
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Apertafuzz
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ClickHouse/ClickHouse#122114 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
linebender/vello_svg#90 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100