Skip to content

Commit

Permalink
Fix Kryptography nuspec dependencies;
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecefreak3 committed Jan 7, 2025
1 parent 74f39db commit 8a867e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
7 changes: 5 additions & 2 deletions src/lib/Kryptography/Encryption/Sony/KryptoStream.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Kryptography.Encryption.Sony
using Komponent.Streams;

namespace Kryptography.Encryption.Sony
{
// TODO: Remove when Sony krypto is reimplemented.
public abstract class KryptoStream : Stream
Expand Down Expand Up @@ -36,6 +38,7 @@ public KryptoStream(Stream input)
public KryptoStream(Stream input, long offset, long length)
{
_baseStream = new SubStream(input, offset, length);
_baseStream.Position = Math.Min(Math.Max(input.Position, offset) - offset, length);
_length = length;
}

Expand All @@ -46,7 +49,7 @@ public KryptoStream(byte[] input)

public KryptoStream(byte[] input, long offset, long length)
{
_baseStream = new SubStream(input, offset, length);
_baseStream = new SubStream(new MemoryStream(input), offset, length);
_length = length;
}

Expand Down
12 changes: 6 additions & 6 deletions src/lib/Kryptography/Kryptography.Debug.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@

<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">GPL-3.0-only</license>
</metadata>

<dependencies>
<group targetFramework="net8.0">
<dependency id="Komponent" version="2.1.1" />
</group>
</dependencies>
<dependencies>
<group targetFramework="net8.0">
<dependency id="Komponent" version="2.1.1" />
</group>
</dependencies>
</metadata>

<files>
<file src="bin\Debug\net8.0\*.dll" target="lib\net8.0\"/>
Expand Down
12 changes: 6 additions & 6 deletions src/lib/Kryptography/Kryptography.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@

<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">GPL-3.0-only</license>
</metadata>

<dependencies>
<group targetFramework="net8.0">
<dependency id="Komponent" version="2.1.1" />
</group>
</dependencies>
<dependencies>
<group targetFramework="net8.0">
<dependency id="Komponent" version="2.1.1" />
</group>
</dependencies>
</metadata>

<files>
<file src="bin\Release\net8.0\*.dll" target="lib\net8.0\"/>
Expand Down

0 comments on commit 8a867e9

Please sign in to comment.