Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Nov 15, 2024
1 parent 9cee8c2 commit a89aace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/packet/sym_encrypted_session_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class SymEncryptedSessionKeyPacket extends ContainedPacket {
final Uint8List iv;
final Uint8List encrypted;
if (sessionKey != null) {
if (version == 5) {
if (aeadProtect) {
final adata = Uint8List.fromList([
0xC0 | PacketTag.symEncryptedSessionKey.value,
version,
Expand Down Expand Up @@ -163,7 +163,7 @@ class SymEncryptedSessionKeyPacket extends ContainedPacket {
iv,
encrypted,
symmetric: symmetric,
aead: aead,
aead: aeadProtect ? aead : null,
sessionKey: sessionKey ?? SessionKey(key, symmetric),
);
}
Expand Down

0 comments on commit a89aace

Please sign in to comment.