Incorrect auth tag generated for GCM mode when feeding data using small chunks
@MHumm がすでに取り組んでいます。
2022年12月21日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- HTML
- スター
- 286
- フォーク
- 78
- 平均マージ
- 1日 23分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MHumm/DelphiEncryptionCompendium のほかの issue
-
CRC64 - PKI Addition再び着手できるかも @MHumm が 151 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · コメント 1 件 · 担当者 1 名 ·
-
Missing PUInt8Array type in the GetIt version.再び着手できるかも @MHumm が 163 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug delphi
MHumm/DelphiEncryptionCompendium#92 · コメント 2 件 · 担当者 1 名 ·
-
Confused by NEXTGEN directive再び着手できるかも @MHumm が 534 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
MHumm/DelphiEncryptionCompendium#88 · コメント 8 件 · 担当者 1 名 ·
-
Authenticated tag is wrong on streams再び着手できるかも @MHumm が 543 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
MHumm/DelphiEncryptionCompendium#87 · コメント 20 件 · 担当者 1 名 ·
-
Support for AEGIS 256再び着手できるかも @MHumm が 854 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · コメント 3 件 · リアクション 1 件 · 担当者 1 名 ·