Exemple #1
0
 //private readonly ILog _logger = LogManager.GetLogger("Runtime");
 /// <summary>
 /// Create the Runtime object to combine all the various components of the livetiming.
 /// </summary>
 /// <param name="liveStream">A stream used to represent the incoming data of the live stream.</param>
 /// <param name="authKeyService">Provider for authorization key requests.</param>
 /// <param name="keyFrameService">Provider for keyframes.</param>
 /// <param name="messageDispatch">A receiver for messages.</param>
 public Runtime(Stream liveStream, IAuthKey authKeyService, IKeyFrame keyFrameService, IMessageDispatch messageDispatch)
 {
     _decryptor = new DataDecryptor();
     _packetReader = new PacketReader(liveStream, new DecryptStreamDecorator(liveStream, _decryptor));
     _messageDispatch = messageDispatch;
     _authKeyService = authKeyService;
     _keyFrameService = keyFrameService;
 }
 public DecryptStreamDecorator(Stream source, DataDecryptor decryptor)
 {
     _source = source;
     _decryptor = decryptor;
 }
 public DecryptStreamDecorator(Stream source, DataDecryptor decryptor)
 {
     _source    = source;
     _decryptor = decryptor;
 }
 public override void OnSetup()
 {
     Decryptor = new DataDecryptor();
 }
Exemple #5
0
        //0xf8ffd6db
        //f8 ff d6 db
        void Test( byte [] encryptedData, byte [] unencryptedData )
        {
            DataDecryptor d = new DataDecryptor {Key = 0xf8ffd6db};
            d.Reset();

            d.DecryptData(encryptedData,0,encryptedData.Length);
        }