Incorrect auth tag generated for GCM mode when feeding data using small chunks
@MHumm já está trabalhando nisso.
Desde 21/12/2022.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- HTML
- Estrelas
- 286
- Forks
- 78
- Merge médio
- 1d 23min
- PRs com merge (30d)
- 5
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MHumm/DelphiEncryptionCompendium
-
CRC64 - PKI AdditionTalvez livre de novo @MHumm assumiu há 151 dias e não há nenhum pull request aberto. Abertaenhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 comentário · 1 responsável ·
-
Missing PUInt8Array type in the GetIt version.Talvez livre de novo @MHumm assumiu há 163 dias e não há nenhum pull request aberto. Abertabug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 comentários · 1 responsável ·
-
Confused by NEXTGEN directiveTalvez livre de novo @MHumm assumiu há 534 dias e não há nenhum pull request aberto. Abertabug
MHumm/DelphiEncryptionCompendium#88 · 8 comentários · 1 responsável ·
-
Authenticated tag is wrong on streamsTalvez livre de novo @MHumm assumiu há 544 dias e não há nenhum pull request aberto. Abertabug
MHumm/DelphiEncryptionCompendium#87 · 20 comentários · 1 responsável ·
-
Support for AEGIS 256Talvez livre de novo @MHumm assumiu há 854 dias e não há nenhum pull request aberto. Abertaenhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · 3 comentários · 1 reação · 1 responsável ·