From 4531815ef290612344467a09e576bc71969aa57b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 26 Jul 2016 19:21:57 -0500 Subject: [PATCH] The code in fact expects an array of OR'd bytes As the spec specifies. Closes #32 --- lib/openpgp_crypt_rsa.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openpgp_crypt_rsa.php b/lib/openpgp_crypt_rsa.php index b7dc762..cd782bc 100644 --- a/lib/openpgp_crypt_rsa.php +++ b/lib/openpgp_crypt_rsa.php @@ -154,7 +154,7 @@ class OpenPGP_Crypt_RSA { if(!$sig) { $sig = new OpenPGP_SignaturePacket($packet, 'RSA', strtoupper($hash)); $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); $packet[] = $sig; }