Skip to content

Commit 87af8c1

Browse files
committed
Restructure libsodium code
1 parent 5980bc3 commit 87af8c1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

AdvancedSystems.Security/Cryptography/Libsodium.cs renamed to AdvancedSystems.Security/Cryptography/Libsodium.Version.cs

File renamed without changes.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
using System;
2+
using System.Runtime.CompilerServices;
23
using System.Runtime.InteropServices;
34

45
namespace AdvancedSystems.Security.Interop;
56

6-
internal partial class Libsodium
7+
internal static partial class Libsodium
78
{
8-
#region version.c
9-
109
[LibraryImport(NativeLibrary.LIBSODIUM, EntryPoint = "sodium_library_version_major")]
10+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1111
internal static partial int SodiumLibraryVersionMajor();
1212

1313
[LibraryImport(NativeLibrary.LIBSODIUM, EntryPoint = "sodium_library_version_minor")]
14+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1415
internal static partial int SodiumLibraryVersionMinor();
1516

1617
[LibraryImport(NativeLibrary.LIBSODIUM, EntryPoint = "sodium_version_string")]
18+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1719
internal static partial IntPtr SodiumVersionString();
18-
19-
#endregion
2020
}

docs/docs/providers.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ TODO
88

99
## Hash
1010

11-
## Generic Hash Algorithms
12-
13-
## PBKDF2 Derived Keys
14-
1511
TODO
1612

1713
## RSACryptoProvider

0 commit comments

Comments
 (0)