Skip to content

Commit

Permalink
Fix ecdh decrypt with curve25519
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 27, 2024
1 parent e207943 commit f7052f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/packet/key/ecdh_session_key_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ECDHSessionKeyParams extends SessionKeyParams {
Uint8List.fromList(
secretParams.d.toUnsignedBytes().reversed.toList(),
),
ephemeralKey.toUnsignedBytes(),
ephemeralKey.toUnsignedBytes().sublist(1),
);
break;
case CurveInfo.ed25519:
Expand Down

0 comments on commit f7052f4

Please sign in to comment.