Incorrect auth tag generated for GCM mode when feeding data using small chunks
@MHumm ci sta già lavorando.
Dal 21/12/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
Incorrect auth tag generated for GCM mode when feeding data using small chunks (at least when sized to cipher's block size). Using such small chunks appear to conform with DEC's documentation.
To Reproduce
- Apply commit af94b8b on top of latest master
- Add new test case to test chunked stream encoding, which uses existing test data set but feeds data in a smaller chunks (cipher's blocks sized) instead of whole stream at once
procedure TestTDECGCM.TestEncodeStreamChunked;
begin
// Use cipher block size as max chunk size
DoTestEncodeStream_LoadAndTestCAVSData(
Max(FCipherAES.Context.BlockSize, FCipherAES.Context.BufferSize));
end;
- Run test GCM suite and get auth tag failure in new test case
Expected and actual behavior
Test should pass, proving that expected auth tag is generated when streaming data in small chunks.
- Lingua principale
- HTML
- Stelle
- 286
- Fork
- 78
- Merge medio
- 1g 4h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 MHumm/DelphiEncryptionCompendium
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
CRC64 - PKI AdditionForse di nuovo libera @MHumm l’ha presa 149 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 commento · 1 assegnatario ·
-
Missing PUInt8Array type in the GetIt version.Forse di nuovo libera @MHumm l’ha presa 160 giorni fa e non c’è nessuna pull request aperta. Apertabug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 commenti · 1 assegnatario ·
-
Help with demoApertaquestion
Difficoltà 4/5 1-2 giorni Idoneità per principianti 25/100
MHumm/DelphiEncryptionCompendium#91 · 6 commenti ·
-
Chacha20 Poly1305Forse di nuovo libera @MHumm l’ha presa 459 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
MHumm/DelphiEncryptionCompendium#89 · 1 commento · 1 assegnatario ·