Hey there,

Do you have any advice for how I should accomplish this goal:

1.  I have a message which I've received which is encrypted-signed.

2.  It decrypts fine.

3.  At this point I would like to do this:  generate a signature
block, and pass this through the functionality I've already written
which does signature checking (query keys using openpgpjs, look up
keys through found keyIds, and then check via openpgpjs)


I believe I can always identify the signature packet.
But how should I transform this into a signature?

Is it as simple as:

      var signatureData = signaturePacket.signature;
      var result = "";

      result += "\r\n-----BEGIN PGP SIGNATURE-----\r\n";
      result += addheader();  // i don't think I'll need to do this?
      result += base64.encode(signatureData);
      result += "\r\n=" + getCheckSum(body.data) + "\r\n";  // not
sure if this is required, will find out, hopefully not
      result += "-----END PGP SIGNATURE-----\r\n";


Should I be using an existing method somewhere else to do this?

Thanks a lot for your time!
Any advice is welcome.

-tim
_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to