Update to sodium 1.0.20.1 to .NET 8
This commit is contained in:
11
CSSUDII.Sodium.Interop/Libsodium.Manual.cs
Normal file
11
CSSUDII.Sodium.Interop/Libsodium.Manual.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace CSSUDII.Sodium.Interop;
|
||||
|
||||
public partial class Libsodium
|
||||
{
|
||||
public static ulong sodium_base64_ENCODED_LEN(ulong BIN_LEN, ulong VARIANT)
|
||||
{
|
||||
return (((BIN_LEN) / 3U) * 4U +
|
||||
((((BIN_LEN) - ((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) - ((BIN_LEN) / 3U) * 3U) >> 1)) & 1U) *
|
||||
(4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) - ((BIN_LEN) / 3U) * 3U)))) + 1U);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user