The code in fact expects an array of OR'd bytes
As the spec specifies. Closes #32
This commit is contained in:
parent
46ec5079e8
commit
4531815ef2
@ -154,7 +154,7 @@ class OpenPGP_Crypt_RSA {
|
|||||||
if(!$sig) {
|
if(!$sig) {
|
||||||
$sig = new OpenPGP_SignaturePacket($packet, 'RSA', strtoupper($hash));
|
$sig = new OpenPGP_SignaturePacket($packet, 'RSA', strtoupper($hash));
|
||||||
$sig->signature_type = 0x13;
|
$sig->signature_type = 0x13;
|
||||||
$sig->hashed_subpackets[] = new OpenPGP_SignaturePacket_KeyFlagsPacket(array(0x01, 0x02));
|
$sig->hashed_subpackets[] = new OpenPGP_SignaturePacket_KeyFlagsPacket(array(0x01 | 0x02));
|
||||||
$sig->hashed_subpackets[] = new OpenPGP_SignaturePacket_IssuerPacket($keyid);
|
$sig->hashed_subpackets[] = new OpenPGP_SignaturePacket_IssuerPacket($keyid);
|
||||||
$packet[] = $sig;
|
$packet[] = $sig;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user