public static IObservable <byte[]> DecryptAESWithECBAsync(byte[] src, byte[] key) { byte[] dst = null; return(Observable.Start(() => Utility.DecryptAESWithECB(src, out dst, key)) .ObserveOnMainThread() .Select(_ => dst)); }
public static IObservable <string> DecryptAESWithECBAsync(string src, string key) { string dst = null; return(Observable.Start(() => Utility.DecryptAESWithECB(src, out dst, key)) .ObserveOnMainThread() .Select(_ => dst)); }