Whoops, that's a leftover debugging attempt. I tried that while cargo
culting to see what might be wrong with my signatures. As I expected, that
didn't help, and we might as well use something like `spark@chrome`.

On Mon Mar 03 2014 at 1:11:41 PM, adam <notifications@github.com> wrote:

> In ide/app/lib/adb.dart:
>
> > +            BigInteger r2 = BigInteger.TWO.pow(4096).mod(modulus);
> > +            List<int> ber2 = r2.toByteArray();
> > +            top = 256 + 256 + 4 + 4 - 1;
> > +            extra = ber2.length - 256;
> > +            for (int i = extra; i < ber2.length; i++) {
> > +              data.setUint8(top - (i - extra), ber2[i]);
> > +            }
> > +
> > +            // Convert the binary data to a Base64 String.
> > +            String b64data = CryptoUtils.bytesToBase64(
> > +                new Uint8List.view(data.buffer).toList());
> > +
> > +            // Now the payload is ready, so we reply with the message.
> > +            AdbMessage response = new AdbMessage(AdbUtil.A_AUTH,
> > +                AdbUtil.ADB_AUTH_RSAPUBLICKEY, 0,
> > +                "$b64data braden@braden-macbookair\x00");
>
> spark@chrome ?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dart-lang/spark/pull/1207/files#r10221136>
> .
>