Remove to_bytes() methods

This commit is contained in:
Deon George
2020-06-24 22:46:20 +10:00
parent 9936e839a4
commit fc914b727d
6 changed files with 8 additions and 20 deletions

View File

@@ -29,7 +29,7 @@ class SecretKeyPacket extends PublicKeyPacket
$secret_material = NULL;
if($this->s2k_useage == 255 || $this->s2k_useage == 254) {
$bytes .= chr($this->symmetric_algorithm);
$bytes .= $this->s2k->to_bytes();
$bytes .= (string)$this->s2k;
}
if($this->s2k_useage > 0) {
$bytes .= $this->encrypted_data;