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)); }
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)); }