aboutsummaryrefslogtreecommitdiff
path: root/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-06-18 21:20:49 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-06-18 21:20:49 -0400
commitdd50b014f7ea0dc80505f03292777f8531cf25c5 (patch)
tree17880605b5a12696e52680cbb412243d76b7495c /wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs
parentffe5d91502efc2cbf98182b7edb97ef4422f26a6 (diff)
Push latest changes from develop merge
Diffstat (limited to 'wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs')
-rw-r--r--wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs b/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs
index e2b3ebe..32a07f4 100644
--- a/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs
+++ b/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs
@@ -22,6 +22,8 @@ using VNLib.Utils.Extensions;
using VNLib.Utils.Memory;
using VNLib.Utils.Native;
+using VNLib.Utils.Cryptography.Noscrypt.@internal;
+
using NCResult = System.Int64;
namespace VNLib.Utils.Cryptography.Noscrypt
@@ -50,6 +52,12 @@ namespace VNLib.Utils.Cryptography.Noscrypt
public const uint NC_ENC_VERSION_NIP04 = 0x00000004u;
public const uint NC_ENC_VERSION_NIP44 = 0x00000002c;
+ public const uint NC_ENC_SET_VERSION = 0x01u;
+ public const uint NC_ENC_SET_NIP44_NONCE = 0x02u;
+ public const uint NC_ENC_SET_NIP44_MAC_KEY = 0x03u;
+ public const uint NC_ENC_SET_NIP04_KEY = 0x04u;
+ public const uint NC_ENC_SET_NIP04_IV = 0x05u;
+
public const NCResult NC_SUCCESS = 0;
public const byte E_NULL_PTR = 0x01;
public const byte E_INVALID_ARG = 0x02;