diff --git a/lib/src/packet/key/ecdh_session_key_params.dart b/lib/src/packet/key/ecdh_session_key_params.dart index 02a0866f..9723317b 100644 --- a/lib/src/packet/key/ecdh_session_key_params.dart +++ b/lib/src/packet/key/ecdh_session_key_params.dart @@ -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: