Incorrect auth tag generated for GCM mode when feeding data using small chunks
@MHumm ya está trabajando en esto.
Desde el 21/12/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- HTML
- Estrellas
- 286
- Forks
- 78
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MHumm/DelphiEncryptionCompendium
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
CRC64 - PKI AdditionQuizá libre de nuevo @MHumm la tomó hace 149 días y no hay ningún pull request abierto. Abiertoenhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 comentario · 1 asignado ·
-
Missing PUInt8Array type in the GetIt version.Quizá libre de nuevo @MHumm la tomó hace 160 días y no hay ningún pull request abierto. Abiertobug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 comentarios · 1 asignado ·
-
Help with demoAbiertoquestion
Dificultad 4/5 1-2 días Aptitud para principiantes 25/100
MHumm/DelphiEncryptionCompendium#91 · 6 comentarios ·
-
Chacha20 Poly1305Quizá libre de nuevo @MHumm la tomó hace 459 días y no hay ningún pull request abierto. Abiertoenhancement
MHumm/DelphiEncryptionCompendium#89 · 1 comentario · 1 asignado ·