File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
src/Robin/Ntlm/Crypt/Random Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 99namespace Robin \Ntlm \Crypt \Random ;
1010
1111use Robin \Ntlm \Crypt \Exception \CryptographicFailureException ;
12- use UnexpectedValueException ;
1312
1413/**
1514 * A cryptographically secure random byte generator implemented using the PHP
1615 * "mcrypt" extension.
1716 *
1817 * @link http://php.net/mcrypt
19- * @deprectated NOTE! This implementation is deprecated, as the mcrypt library
20- * is abandoned. More info: https://github.com/robinpowered/php-ntlm/pull/1
21- * @todo Remove this implementation in a future version.
18+ * @deprecated This implementation is deprecated, as the mcrypt library
19+ * is abandoned. Use {@link NativeRandomByteGenerator} instead.
20+ * More info: https://github.com/robinpowered/php-ntlm/pull/1
21+ * @todo Mcrypt is abandoned and this should be removed in a future version.
2222 */
2323class McryptRandomByteGenerator implements RandomByteGeneratorInterface
2424{
@@ -67,8 +67,8 @@ public function __construct($source = self::DEFAULT_SOURCE)
6767 /**
6868 * {@inheritDoc}
6969 *
70- * @deprectated NOTE! This implementation is deprecated, as the mcrypt
71- * library is abandoned.
70+ * @deprecated This implementation is deprecated, as the mcrypt
71+ * library is abandoned. Use {@link NativeRandomByteGenerator} instead.
7272 */
7373 public function generate ($ size )
7474 {
Original file line number Diff line number Diff line change 1515 * "openssl" extension.
1616 *
1717 * @link http://php.net/openssl
18- * @deprectated NOTE! This implementation is deprecated, as it's been found to
19- * be insecure. More info: https://github.com/robinpowered/php-ntlm/issues/7
20- * @todo Remove this implementation in a future version.
18+ * @deprecated This implementation is deprecated, as it's been found to
19+ * be insecure. Use {@link NativeRandomByteGenerator} instead.
20+ * More info: https://github.com/robinpowered/php-ntlm/issues/7
21+ * @todo This random byte generator is insecure due to an issue with
22+ * `openssl_random_pseudo_bytes`. It should be removed in a future version.
2123 */
2224class OpenSslRandomByteGenerator implements RandomByteGeneratorInterface
2325{
@@ -29,8 +31,8 @@ class OpenSslRandomByteGenerator implements RandomByteGeneratorInterface
2931 /**
3032 * {@inheritDoc}
3133 *
32- * @deprectated NOTE! This implementation is deprecated, as it's been found
33- * to be insecure.
34+ * @deprecated This implementation is deprecated, as it's been found
35+ * to be insecure. Use {@link RandomByteGeneratorInterface} instead.
3436 */
3537 public function generate ($ size )
3638 {
You can’t perform that action at this time.
0 commit comments