public void AddNewKey(Key newKey, KeyAllocation keyAllocation)
        {
            Key rest = newKey;

            var split1 = rest.DivideKey(ServiceKeyBuffer.GetServiceKeyLength());

            ServiceKeyBuffer.AddKey(split1.Item1);
            rest = split1.Item2;

            var split2 = rest.DivideKey(ServiceKeyBuffer.GetServiceKeyLength());

            ServiceKeyBuffer.AddKey(split2.Item1);
            rest = split2.Item2;

            UndecidedKeyBuffer.AddKey(rest);
            AllocateUndecidedKeys(keyAllocation);
        }
 public CommonKeyStoreSystem(ServiceKeyBuffer serviceKeyBuffer)
 {
     ServiceKeyBuffer   = serviceKeyBuffer;
     UndecidedKeyBuffer = new KeyBuffer();
 }