-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
500 additions
and
211 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
unity.libsodium/Assets/unity.libsodium/Interop/NativeTypeNameAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace unity.libsodium.Interop | ||
{ | ||
/// <summary>Defines the type of a member as it was used in the native signature.</summary> | ||
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)] | ||
[Conditional("DEBUG")] | ||
internal sealed partial class NativeTypeNameAttribute : Attribute | ||
{ | ||
private readonly string _name; | ||
|
||
/// <summary>Initializes a new instance of the <see cref="NativeTypeNameAttribute" /> class.</summary> | ||
/// <param name="name">The name of the type that was used in the native signature.</param> | ||
public NativeTypeNameAttribute(string name) | ||
{ | ||
_name = name; | ||
} | ||
|
||
/// <summary>Gets the name of the type that was used in the native signature.</summary> | ||
public string Name => _name; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
unity.libsodium/Assets/unity.libsodium/Interop/NativeTypeNameAttribute.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
unity.libsodium/Assets/unity.libsodium/Interop/crypto_kdf_hkdf_sha256_state.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace unity.libsodium.Interop | ||
{ | ||
public partial struct crypto_kdf_hkdf_sha256_state | ||
{ | ||
public crypto_auth_hmacsha256_state st; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
unity.libsodium/Assets/unity.libsodium/Interop/crypto_kdf_hkdf_sha256_state.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
unity.libsodium/Assets/unity.libsodium/Interop/crypto_kdf_hkdf_sha512_state.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace unity.libsodium.Interop | ||
{ | ||
public partial struct crypto_kdf_hkdf_sha512_state | ||
{ | ||
public crypto_auth_hmacsha512_state st; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
unity.libsodium/Assets/unity.libsodium/Interop/crypto_kdf_hkdf_sha512_state.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
613 changes: 416 additions & 197 deletions
613
unity.libsodium/Assets/unity.libsodium/NativeLibsodium.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters