mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-14 01:30:20 +00:00
Crypt/Base: code cleanup
This commit is contained in:
parent
a975471263
commit
8a123550c5
@ -779,6 +779,7 @@ abstract class Base
|
|||||||
}
|
}
|
||||||
return $ciphertext;
|
return $ciphertext;
|
||||||
case self::MODE_OFB8:
|
case self::MODE_OFB8:
|
||||||
|
// OpenSSL has built in support for cfb8 but not ofb8
|
||||||
$ciphertext = '';
|
$ciphertext = '';
|
||||||
$len = strlen($plaintext);
|
$len = strlen($plaintext);
|
||||||
$iv = $this->encryptIV;
|
$iv = $this->encryptIV;
|
||||||
@ -795,8 +796,6 @@ abstract class Base
|
|||||||
break;
|
break;
|
||||||
case self::MODE_OFB:
|
case self::MODE_OFB:
|
||||||
return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer);
|
return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer);
|
||||||
case self::MODE_OFB8:
|
|
||||||
// OpenSSL has built in support for cfb8 but not ofb8
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user