You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self::ensureTrue(self::strlen($ctr) === self::BLOCK_BYTE_SIZE, 'Trying to increment a nonce of the wrong size.');
81
-
self::ensureTrue(is_int($inc), 'Trying to increment nonce by a non-integer.');
82
73
self::ensureTrue($inc > 0, 'Trying to increment a nonce by a nonpositive amount'); // The caller is probably re-using CTR-mode keystream if they increment by 0.
83
74
self::ensureTrue($inc <= PHP_INT_MAX - 255, 'Integer overflow may occur');
84
75
@@ -141,7 +132,7 @@ public static function HKDF(string $hash, string $ikm, int $length, string $info
@@ -94,7 +94,7 @@ public static function encryptResource($inputHandle, $outputHandle, Key $key): v
94
94
/**
95
95
* Encrypts the contents of one resource handle into another with a password, using a slow key derivation function to make password cracking more expensive.
0 commit comments