示例#1
0
        public static int SodiumBase642bin(byte[] bin, ulong bin_maxlen, string b64, ulong b64_len, string ignore, ref ulong bin_len, sbyte[] b64_end, int variant)
        {
            fixed(ulong *__refParamPtr5 = &bin_len)
            {
                var __arg5 = __refParamPtr5;
                var __ret  = __Internal.SodiumBase642bin(MarshalHelper.ByteArrayToIntPtr(bin), bin_maxlen, b64, b64_len, ignore, __arg5, MarshalHelper.SByteArrayToDoubleIntPtr(b64_end), variant);

                return(__ret);
            }
        }
示例#2
0
        public static int SodiumHex2bin(byte[] bin, ulong bin_maxlen, string hex, ulong hex_len, string ignore, ref ulong bin_len, sbyte[] hex_end)
        {
            fixed(ulong *__refParamPtr5 = &bin_len)
            {
                var __arg5 = __refParamPtr5;
                var __ret  = __Internal.SodiumHex2bin(MarshalHelper.ByteArrayToIntPtr(bin), bin_maxlen, hex, hex_len, ignore, __arg5, MarshalHelper.SByteArrayToDoubleIntPtr(hex_end));

                return(__ret);
            }
        }
示例#3
0
        public static sbyte *SodiumBin2base64(sbyte[] b64, ulong b64_maxlen, byte[] bin, ulong bin_len, int variant)
        {
            var __ret = __Internal.SodiumBin2base64(MarshalHelper.SByteArrayToIntPtr(b64), b64_maxlen, MarshalHelper.ByteArrayToIntPtr(bin), bin_len, variant);

            return(__ret);
        }
示例#4
0
        public static sbyte *SodiumBin2hex(sbyte[] hex, ulong hex_maxlen, byte[] bin, ulong bin_len)
        {
            var __ret = __Internal.SodiumBin2hex(MarshalHelper.SByteArrayToIntPtr(hex), hex_maxlen, MarshalHelper.ByteArrayToIntPtr(bin), bin_len);

            return(__ret);
        }
示例#5
0
 public static void SodiumAdd(byte[] a, byte[] b, ulong len)
 {
     __Internal.SodiumAdd(MarshalHelper.ByteArrayToIntPtr(a), MarshalHelper.ByteArrayToIntPtr(b), len);
 }
示例#6
0
 public static void SodiumIncrement(byte[] n, ulong nlen)
 {
     __Internal.SodiumIncrement(MarshalHelper.ByteArrayToIntPtr(n), nlen);
 }
示例#7
0
        public static int SodiumIsZero(byte[] n, ulong nlen)
        {
            var __ret = __Internal.SodiumIsZero(MarshalHelper.ByteArrayToIntPtr(n), nlen);

            return(__ret);
        }
示例#8
0
        public static int SodiumCompare(byte[] b1_, byte[] b2_, ulong len)
        {
            var __ret = __Internal.SodiumCompare(MarshalHelper.ByteArrayToIntPtr(b1_), MarshalHelper.ByteArrayToIntPtr(b2_), len);

            return(__ret);
        }