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
{{ message }}
Repository navigation
Commit c82460f
Browse filesBrowse the repository at this point in the historyBrowse files
'Using a "%s" key whose "key_ops" parameter does not contain "encrypt" is deprecated and will not be possible in 5.0.0: the key encrypts the content.',
if (! $keyEncryptionAlgorithminstanceof DirectEncryption || KeyChecker::allowsOperation($key, 'decrypt')) {
293
+
return;
294
+
}
295
+
trigger_deprecation(
296
+
'web-token/jwt-library',
297
+
'4.3.0',
298
+
'Using a "%s" key whose "key_ops" parameter does not contain "decrypt" is deprecated and will not be possible in 5.0.0: the key decrypts the content.',
299
+
$keyEncryptionAlgorithm->name()
300
+
);
301
+
}
302
+
279
303
/**
280
304
* A key obtained by key agreement is checked like a decrypted or unwrapped one, and a direct key must be at least
281
305
* that long: the content encryption algorithms pad a short key with zero bytes instead of rejecting it.
0 commit comments