Authenticated tag is wrong on streams
@MHumm 已經在處理了。
開始於 2025年4月22日。
評估
這個 Issue 還沒有評估資料。
描述
The routine EncodeStream creates a different authentication tag as the EncodeBytes if the field
DatatToAuthenticate is used.
The problems seems to be that EncodeStream splits the buffer in 8kB blocks and calls EncodeGCM multiple
times. Here the DataToAuthenticate field is used on every call which means that it is mengled into the
tag calculatation on each iteration.
EncodeBytes calls the EncodeGCM routine only once on the whole buffer. Check out the attached project (unfortunately I could not upload a dpr file only a txt file...)
On a different matter... would it be possible to add an additional parameter to the EncodeStream function that allows
to change the endianess of the stream? There are built in classes that allow to operate on TBytes but not on streams.
(Or... did I miss something?)
My background here is to create an encrypted firmeware file for a microcontroller which uses an ARM CPU
- 主要語言
- HTML
- 星號
- 286
- 分支
- 78
- 平均合併
- 1 天 23 分鐘
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MHumm/DelphiEncryptionCompendium 的其他 Issue
-
CRC64 - PKI Addition可能重新可做 @MHumm 於 150 天前認領,目前沒有進行中的 PR。 未關閉enhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 則留言 · 已指派 1 人 ·
-
Missing PUInt8Array type in the GetIt version.可能重新可做 @MHumm 於 161 天前認領,目前沒有進行中的 PR。 未關閉bug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 則留言 · 已指派 1 人 ·
-
Confused by NEXTGEN directive可能重新可做 @MHumm 於 532 天前認領,目前沒有進行中的 PR。 未關閉bug
MHumm/DelphiEncryptionCompendium#88 · 8 則留言 · 已指派 1 人 ·
-
Support for AEGIS 256可能重新可做 @MHumm 於 853 天前認領,目前沒有進行中的 PR。 未關閉enhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · 3 則留言 · 1 個 reaction · 已指派 1 人 ·
-
Range Check Exception when using KDF with empty password可能重新可做 @MHumm 於 888 天前認領,目前沒有進行中的 PR。 未關閉bug help wanted
MHumm/DelphiEncryptionCompendium#76 · 4 則留言 · 已指派 1 人 ·