private protected KeyBase(ISystemClock clock, ICKBinaryReader r) { Clock = clock; r.ReadByte(); Kty = r.ReadEnum <KeyType>(); Kid = JsonEncodedText.Encode(r.ReadString()); Operations = r.ReadEnum <KeyOperations>(); CreationDate = r.ReadDateTime(); BestBefore = r.ReadDateTime(); MaxUseCount = r.ReadUInt32(); _oUseCount = r.ReadInt32(); }