public static byte[] Decrypt(this CryptoService service, byte[] buffer, int offset, int count) => service.Decrypt(new ArraySegment <byte>(buffer, offset, count));
public static byte[] Decrypt(this CryptoService service, byte[] buffer) => service.Decrypt(new ArraySegment <byte>(buffer, 0, buffer.Length));