Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
328063d
"Remove unused projects, tests, and examples
axies20 Feb 8, 2025
eb5ecd7
Add a console example project and refactor settings
axies20 Feb 9, 2025
7511e47
Add console example project and clean up settings
axies20 Feb 10, 2025
b371ddb
Refactor ETAMP core and services for improved modularity.
axies20 Feb 13, 2025
102e407
Replace Pipe usage with MemoryStream and streamline compression
axies20 Feb 15, 2025
61eb766
Refactor compression logic and improve maintainability.
axies20 Feb 16, 2025
b331149
Refactor compression service implementation.
axies20 Feb 16, 2025
2ce50bb
Refactor and enhance compression and serialization logic.
axies20 Feb 16, 2025
551dd43
Add tests and refactor ETAMP services and extensions
axies20 Feb 19, 2025
ffa2e3d
Refactor compression error handling and validation.
axies20 Feb 19, 2025
c3a9797
Add shelved patch file for uncommitted changes
axies20 Feb 20, 2025
2b0d328
Add ETAMP.Encryption.Console project and enhance encryption
axies20 Feb 20, 2025
de7106b
Add ETAMP.Encryption.Console project and improve encryption services
axies20 Feb 22, 2025
61a08cf
Reformat and enhance XML documentation comments.
axies20 Feb 22, 2025
ca4c9ba
Refactor compression services and enhance code maintainability
axies20 Feb 23, 2025
7791b18
Update .gitignore to exclude IDE and build system files
axies20 Feb 23, 2025
1cf4197
"Remove unused projects, tests, and examples
axies20 Feb 8, 2025
b3c529e
Add a console example project and refactor settings
axies20 Feb 9, 2025
a834a72
Add console example project and clean up settings
axies20 Feb 10, 2025
9023f96
Refactor ETAMP core and services for improved modularity.
axies20 Feb 13, 2025
4e0aeb9
Replace Pipe usage with MemoryStream and streamline compression
axies20 Feb 15, 2025
2598db6
Refactor compression logic and improve maintainability.
axies20 Feb 16, 2025
2524313
Refactor compression service implementation.
axies20 Feb 16, 2025
f5a235d
Refactor and enhance compression and serialization logic.
axies20 Feb 16, 2025
1c779ef
Add tests and refactor ETAMP services and extensions
axies20 Feb 19, 2025
dd4d5e9
Refactor compression error handling and validation.
axies20 Feb 19, 2025
1df7d27
Add shelved patch file for uncommitted changes
axies20 Feb 20, 2025
0dbfba8
Add ETAMP.Encryption.Console project and enhance encryption
axies20 Feb 20, 2025
201ffaa
Add ETAMP.Encryption.Console project and improve encryption services
axies20 Feb 22, 2025
4a8e139
Reformat and enhance XML documentation comments.
axies20 Feb 22, 2025
5e053b5
Refactor compression services and enhance code maintainability
axies20 Feb 23, 2025
188c3bb
Update .gitignore to exclude IDE and build system files
axies20 Feb 23, 2025
8591913
Delete .idea/.idea.ETAMP/.idea directory
axies20 Feb 23, 2025
ed59e8e
Merge remote-tracking branch 'origin/pipe_dev' into pipe_dev
axies20 Feb 23, 2025
0f252d3
Remove .idea from tracking
axies20 Feb 23, 2025
e064f50
Update .gitignore to ignore all files in .idea and .vs folders
axies20 Feb 23, 2025
2fa6f16
Refactor service naming and add ECIESEncryptionManager.
axies20 Feb 23, 2025
bc5b899
Add benchmarking project for encryption services
axies20 Feb 24, 2025
533c6b2
Refactor ECDsaSignatureProvider to improve data handling.
axies20 Feb 25, 2025
25774d5
Refactor ETAMP for signature validation and dependency updates
axies20 Mar 21, 2025
103cda7
Refactor compression service and remove outdated tests.
axies20 Mar 23, 2025
8f0fb77
Add test project for ETAMP.Compression
axies20 Mar 23, 2025
1e0aecf
Add unit test for CompressionManager CompressAsync method
axies20 Mar 24, 2025
51f0b1e
Update package dependencies to latest versions
axies20 Apr 9, 2025
991dfe0
Update README to simplify and streamline dependencies section
axies20 Apr 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
nupkgs/
nupkgs/
.idea/*
.vs/*
50 changes: 50 additions & 0 deletions Benchmark/ETAMP.Compress.Benchmark/CompressBench.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using BenchmarkDotNet.Attributes;
using ETAMP.Compression.Interfaces;
using ETAMP.Core.Management;
using ETAMP.Core.Models;
using ETAMP.Extension.ServiceCollection;
using Microsoft.Extensions.DependencyInjection;

namespace ETAMP.Compress.Benchmark;

[MemoryDiagnoser]
[ThreadingDiagnoser]
[GcServer]
//[HardwareCounters(HardwareCounter.CacheMisses, HardwareCounter.BranchMispredictions)]
public class CompressBench
{
private ETAMPModelBuilder _builder;
private ICompressionManager _compressionManager;
private ETAMPModel<Token> _model;

[GlobalSetup]
public async Task Setup()
{
ServiceCollection services = new();
services.AddCompositionServices();
var provider = services.BuildServiceProvider();
_compressionManager = provider.GetRequiredService<ICompressionManager>();
_model = new ETAMPModel<Token>
{
Version = 2,
CompressionType = CompressionNames.Deflate,
Token = new Token
{
Data = "string"
}
};
_builder = await _compressionManager.CompressAsync(_model);
}

[Benchmark]
public async Task Compress()
{
await _compressionManager.CompressAsync(_model);
}

[Benchmark]
public async Task Decompress()
{
await _compressionManager.DecompressAsync<Token>(_builder);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>default</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.14.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1"/>
<PackageReference Include="Serilog" Version="4.2.0"/>
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.4" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Source\ETAMP.Core\ETAMP.Core.csproj"/>
<ProjectReference Include="..\..\Source\ETAMP.Compression\ETAMP.Compression.csproj"/>
<ProjectReference Include="..\..\Source\ETAMP.Extension.ServiceCollection\ETAMP.Extension.ServiceCollection.csproj"/>
</ItemGroup>

Expand Down
11 changes: 11 additions & 0 deletions Benchmark/ETAMP.Compress.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using BenchmarkDotNet.Running;

namespace ETAMP.Compress.Benchmark;

internal class Program
{
private static void Main(string[] args)
{
BenchmarkRunner.Run<CompressBench>();
}
}
95 changes: 0 additions & 95 deletions Benchmark/ETAMP.Create.Benchmark/ETAMPBenchmark.cs

This file was deleted.

15 changes: 0 additions & 15 deletions Benchmark/ETAMP.Create.Benchmark/Program.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>ETAMP.CreateETAMP.Console</AssemblyName>
<RootNamespace>ETAMP.CreateETAMP.Console</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1"/>
<PackageReference Include="BenchmarkDotNet" Version="0.14.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
46 changes: 46 additions & 0 deletions Benchmark/ETAMP.Encryption.Benchmark/EncryptionBenchmark.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using System.Security.Cryptography;
using BenchmarkDotNet.Attributes;
using ETAMP.Encryption.Interfaces;
using ETAMP.Extension.ServiceCollection;
using Microsoft.Extensions.DependencyInjection;

namespace ETAMP.Encryption.Benchmark;

[MemoryDiagnoser]
[ThreadingDiagnoser]
[GcServer]
public class EncryptionBenchmark
{
private readonly string _data = "String to encrypt";
private string _encryptData;
private IECIESEncryptionManager _encryptionManager;
private ECDiffieHellman _person1;
private ECDiffieHellman _person2;

[GlobalSetup]
public async Task Setup()
{
ServiceCollection services = new();
services.AddEncryptionServices();
var provider = services.BuildServiceProvider();

_person1 = ECDiffieHellman.Create();
_person2 = ECDiffieHellman.Create();

_encryptionManager = provider.GetRequiredService<IECIESEncryptionManager>();

_encryptData = await _encryptionManager.EncryptAsync(_data, _person1, _person2.PublicKey);
}

[Benchmark]
public async Task Encrypt()
{
await _encryptionManager.EncryptAsync(_data, _person1, _person2.PublicKey);
}

[Benchmark]
public async Task Decrypt()
{
await _encryptionManager.DecryptAsync(_encryptData, _person2, _person1.PublicKey);
}
}
11 changes: 11 additions & 0 deletions Benchmark/ETAMP.Encryption.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using BenchmarkDotNet.Running;

namespace ETAMP.Encryption.Benchmark;

internal class Program
{
private static void Main(string[] args)
{
BenchmarkRunner.Run<EncryptionBenchmark>();
}
}
106 changes: 0 additions & 106 deletions Benchmark/ETAMP.Sign.Benchmark/ETAMPSignBenchmark.cs

This file was deleted.

Loading