Crypt/Base: code cleanup

This commit is contained in:
terrafrost 2022-01-30 10:25:45 -06:00
parent a975471263
commit 8a123550c5

View File

@ -779,6 +779,7 @@ abstract class Base
}
return $ciphertext;
case self::MODE_OFB8:
// OpenSSL has built in support for cfb8 but not ofb8
$ciphertext = '';
$len = strlen($plaintext);
$iv = $this->encryptIV;
@ -795,8 +796,6 @@ abstract class Base
break;
case self::MODE_OFB:
return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer);
case self::MODE_OFB8:
// OpenSSL has built in support for cfb8 but not ofb8
}
}