use bitlength

This commit is contained in:
Stephen Paul Weber 2011-07-25 11:50:27 -05:00
parent af3643c919
commit 951ff2cacc
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
$body .= pack('n', strlen($unhashed_subpackets)).$unhashed_subpackets;
$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;
}