SimpleASNWriter asnEncoded = new SimpleASNWriter();
asnEncoded.writeByte(0x30);
asnEncoded.writeData(asn.toByteArray());
byte[] encoded = asnEncoded.toByteArray();
if (log.isDebugEnabled()) {
log.debug("Verifying host key signature");
log.debug("Signature length is " +
String.valueOf(signature.length));