use bitlength
This commit is contained in:
parent
af3643c919
commit
951ff2cacc
@ -476,7 +476,7 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
|
|||||||
$body .= pack('n', strlen($unhashed_subpackets)).$unhashed_subpackets;
|
$body .= pack('n', strlen($unhashed_subpackets)).$unhashed_subpackets;
|
||||||
|
|
||||||
$body .= pack('n', $this->hash_head);
|
$body .= pack('n', $this->hash_head);
|
||||||
$body .= pack('n', strlen($this->data)*8).$this->data;
|
$body .= pack('n', OpenPGP::bitlength($this->data)).$this->data;
|
||||||
|
|
||||||
return $body;
|
return $body;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user