Goedel.Cryptography.Secret.CombineN C# (CSharp) Method

CombineN() static private method

static private CombineN ( KeyShare Shares ) : byte[]
Shares KeyShare
return byte[]
        static byte[] CombineN(KeyShare[] Shares) {
            var KeyBytes = Shares[0].Key.Length;
            byte[] Result = new byte[KeyBytes - 1];

            foreach (var Share in Shares) {
                ArrayXOR1(Result, Share.Key);
                }

            return Result;
            }