public KeyRequirement(ICKBinaryReader r) { r.ReadByte(); // Version. KeyType = r.ReadEnum <KeyType>(); Operations = r.ReadEnum <KeyOperations>(); KeySizeInBits = r.ReadNullableInt32( ); CurveName = HelperAndExtensions.ReadNullableOid(r); if (r.ReadBoolean()) { InitiatorAlgorithmName = r.ReadString(); } }
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(); }