Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Incorrect auth tag generated for GCM mode when feeding data using small chunks

Aperta
#52 8 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@MHumm ci sta già lavorando.

Dal 21/12/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug help wanted

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

  1. Apply commit af94b8b on top of latest master
  2. 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;
  1. 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MHumm/DelphiEncryptionCompendium

Tutte le issue di MHumm/DelphiEncryptionCompendium

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.