From dd50b014f7ea0dc80505f03292777f8531cf25c5 Mon Sep 17 00:00:00 2001 From: vnugent Date: Tue, 18 Jun 2024 21:20:49 -0400 Subject: Push latest changes from develop merge --- .../dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/src/LibNoscrypt.cs') 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; -- cgit