예제 #1
0
파일: DD_SK.java 프로젝트: Rfinley93/DDP2P
 @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;
 }
예제 #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;
 }