Skip to content

Commit

Permalink
Merge pull request #1102 from mus65/bouncycastle
Browse files Browse the repository at this point in the history
Switch to BouncyCastle.Cryptography
  • Loading branch information
tonyqus committed Jun 21, 2023
2 parents 5882dda + ed05770 commit 2c2fc3a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/NPOI.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="Enums.NET" Version="4.0.1" />
<PackageReference Include="MathNet.Numerics.Signed" Version="4.15.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.3.2" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.2.1" />
<PackageReference Include="SharpZipLib" Version="1.3.3" />
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta19" />
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.4" />
Expand Down
22 changes: 22 additions & 0 deletions main/POIFS/Crypt/Standard/StandardDecryptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,28 @@ public void Reset()
{

}

#if NET6_0_OR_GREATER
public int ProcessByte(byte input, Span<byte> output)
{
return 0;
}

public int ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output)
{
return 0;
}

public int DoFinal(Span<byte> output)
{
return 0;
}

public int DoFinal(ReadOnlySpan<byte> input, Span<byte> output)
{
return 0;
}
#endif
}
public class NullCipher : Cipher
{
Expand Down

0 comments on commit 2c2fc3a

Please sign in to comment.