singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
179 stars 69 forks source link

How to Add OpenPGP_OnePassSignaturePacket when Signature ? #91

Closed lmlbenny closed 3 years ago

lmlbenny commented 4 years ago

how can i add OpenPGP_OnePassSignaturePacket object when signature? i show in code have class_for in openpgp_packet when it will call?

singpolyma commented 3 years ago

If you want to construct a one-pass style signature you will have to construct the packet manually and then re-order the message so it matches RFC4880 for the one-pass signature messages.