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分
- マージ済み 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 が 162 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug delphi
MHumm/DelphiEncryptionCompendium#92 · コメント 2 件 · 担当者 1 名 ·
-
Confused by NEXTGEN directive再び着手できるかも @MHumm が 533 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
MHumm/DelphiEncryptionCompendium#88 · コメント 8 件 · 担当者 1 名 ·
-
Support for AEGIS 256再び着手できるかも @MHumm が 854 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · コメント 3 件 · リアクション 1 件 · 担当者 1 名 ·
-
Range Check Exception when using KDF with empty password再び着手できるかも @MHumm が 889 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug help wanted
MHumm/DelphiEncryptionCompendium#76 · コメント 4 件 · 担当者 1 名 ·