Incorrect auth tag generated for GCM mode when feeding data using small chunks
@MHumm đang làm issue này rồi.
Từ ngày 21/12/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- HTML
- Star
- 286
- Fork
- 78
- Merge trung bình
- 1 ngày 23 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MHumm/DelphiEncryptionCompendium
-
CRC64 - PKI AdditionCó thể làm lại được @MHumm đã nhận 150 ngày trước và không có pull request nào đang mở. Đang mởenhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 bình luận · 1 người được giao ·
-
Missing PUInt8Array type in the GetIt version.Có thể làm lại được @MHumm đã nhận 161 ngày trước và không có pull request nào đang mở. Đang mởbug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 bình luận · 1 người được giao ·
-
Confused by NEXTGEN directiveCó thể làm lại được @MHumm đã nhận 532 ngày trước và không có pull request nào đang mở. Đang mởbug
MHumm/DelphiEncryptionCompendium#88 · 8 bình luận · 1 người được giao ·
-
Authenticated tag is wrong on streamsCó thể làm lại được @MHumm đã nhận 542 ngày trước và không có pull request nào đang mở. Đang mởbug
MHumm/DelphiEncryptionCompendium#87 · 20 bình luận · 1 người được giao ·
-
Support for AEGIS 256Có thể làm lại được @MHumm đã nhận 853 ngày trước và không có pull request nào đang mở. Đang mởenhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · 3 bình luận · 1 reaction · 1 người được giao ·