Exemple #1
0
 public static IObservable <byte[]> DecryptAESWithCBCAsync(byte[] src, byte[] key, byte[] iv)
 {
     byte[] dst = null;
     return(Observable.Start(() => Utility.DecryptAESWithCBC(src, key, iv, out dst))
            .ObserveOnMainThread()
            .Select(_ => dst));
 }
Exemple #2
0
        public static IObservable <string> DecyptAESWithCBCAsync(string src, string key, string iv)
        {
            string dst = null;

            return(Observable.Start(() => Utility.DecryptAESWithCBC(src, key, iv, out dst))
                   .ObserveOnMainThread()
                   .Select(_ => dst));
        }