Example #1
0
 @Override
 public Encoder getEncoder() {
   Encoder enc = getSignEncoder();
   if (sender != null) enc.addToSequence(sender.getEncoder().setASN1Type(DD.TAG_AP1));
   if (signature != null) enc.addToSequence(new Encoder(signature).setASN1Type(DD.TAG_AP2));
   enc.setASN1Type(Encoder.CLASS_APPLICATION, Encoder.PC_CONSTRUCTED, getASN1Tag());
   return enc;
 }
Example #2
0
 public Encoder getSignatureEncoder() {
   Encoder enc = new Encoder().initSequence();
   // enc.addToSequence(new Encoder(introducerPeerGID));
   enc.addToSequence(new Encoder(testerGID));
   enc.addToSequence(new Encoder(weight));
   enc.addToSequence(new Encoder(creation_date));
   // enc.addToSequence(new Encoder(signature));
   enc.setASN1Type(getASNType());
   return enc;
 }