> +         writeLengthFirst("ssh-dss".getBytes(), out);
> +         writeLengthFirst(p.toByteArray(), out);
> +         writeLengthFirst(q.toByteArray(), out);
> +         writeLengthFirst(g.toByteArray(), out);
> +         writeLengthFirst(y.toByteArray(), out);
> +         return out.toByteArray();
> +      } catch (IOException e) {
> +         throw propagate(e);
> +      }
> +   }
> +
> +   /**
> +    * @see SshKeys
> +    */
> +   // http://www.ietf.org/rfc/rfc4253.txt
> +   private static byte[] readLengthFirst(InputStream in) throws IOException {

These methods are just a copy of the ones in 
[SshKeys](https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/ssh/SshKeys.java),
 which are private. I added them here to be able to build and test the 
provider, but all the methods in this DSAKeys class should be moved to the 
SshKeys one.

I plan to open a pull request and move them there, but I'd like to do it after 
having this PR in. Do you agree?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9171801

Reply via email to