|
20 | 20 | <exclude name="PHPCompatibility.Classes.NewClasses.sodiumexceptionFound"/> |
21 | 21 |
|
22 | 22 | <!-- https://github.com/paragonie/sodium_compat/blob/master/lib/php72compat.php --> |
23 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_keybytesFound"/> |
24 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_nsecbytesFound"/> |
25 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_npubbytesFound"/> |
26 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_abytesFound"/> |
| 23 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_base64_variant_originalFound"/> |
| 24 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_base64_variant_original_no_paddingFound"/> |
| 25 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_base64_variant_urlsafeFound"/> |
| 26 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_base64_variant_urlsafe_no_paddingFound"/> |
27 | 27 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_aes256gcm_keybytesFound"/> |
28 | 28 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_aes256gcm_nsecbytesFound"/> |
29 | 29 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_aes256gcm_npubbytesFound"/> |
30 | 30 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_aes256gcm_abytesFound"/> |
| 31 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_keybytesFound"/> |
| 32 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_nsecbytesFound"/> |
| 33 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_npubbytesFound"/> |
| 34 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_abytesFound"/> |
31 | 35 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_ietf_keybytesFound"/> |
32 | 36 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_ietf_nsecbytesFound"/> |
33 | 37 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_ietf_npubbytesFound"/> |
34 | 38 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_chacha20poly1305_ietf_abytesFound"/> |
| 39 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_xchacha20poly1305_ietf_keybytesFound"/> |
| 40 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_xchacha20poly1305_ietf_nsecbytesFound"/> |
| 41 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_xchacha20poly1305_ietf_npubbytesFound"/> |
| 42 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_aead_xchacha20poly1305_ietf_abytesFound"/> |
35 | 43 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_auth_bytesFound"/> |
36 | 44 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_auth_keybytesFound"/> |
37 | 45 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_box_sealbytesFound"/> |
|
41 | 49 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_box_macbytesFound"/> |
42 | 50 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_box_noncebytesFound"/> |
43 | 51 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_box_seedbytesFound"/> |
| 52 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kdf_bytes_minFound"/> |
| 53 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kdf_bytes_maxFound"/> |
| 54 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kdf_contextbytesFound"/> |
| 55 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kdf_keybytesFound"/> |
44 | 56 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_bytesFound"/> |
| 57 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_keypairbytesFound"/> |
45 | 58 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_publickeybytesFound"/> |
46 | 59 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_secretkeybytesFound"/> |
47 | 60 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_seedbytesFound"/> |
| 61 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_kx_sessionkeybytesFound"/> |
48 | 62 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_generichash_bytesFound"/> |
49 | 63 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_generichash_bytes_minFound"/> |
50 | 64 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_generichash_bytes_maxFound"/> |
|
61 | 75 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_opslimit_moderateFound"/> |
62 | 76 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_memlimit_sensitiveFound"/> |
63 | 77 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_opslimit_sensitiveFound"/> |
| 78 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_saltbytesFound"/> |
| 79 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_strprefixFound"/> |
| 80 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_opslimit_interactiveFound"/> |
| 81 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_memlimit_interactiveFound"/> |
| 82 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_opslimit_sensitiveFound"/> |
| 83 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_pwhash_scryptsalsa208sha256_memlimit_sensitiveFound"/> |
64 | 84 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_scalarmult_bytesFound"/> |
65 | 85 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_scalarmult_scalarbytesFound"/> |
| 86 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_abytesFound"/> |
| 87 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_headerbytesFound"/> |
| 88 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_keybytesFound"/> |
| 89 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_messagebytes_maxFound"/> |
| 90 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_tag_pushFound"/> |
| 91 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_tag_rekeyFound"/> |
| 92 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretstream_xchacha20poly1305_tag_finalFound"/> |
66 | 93 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_shorthash_bytesFound"/> |
67 | 94 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_shorthash_keybytesFound"/> |
68 | 95 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_secretbox_keybytesFound"/> |
|
75 | 102 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_sign_keypairbytesFound"/> |
76 | 103 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_stream_keybytesFound"/> |
77 | 104 | <exclude name="PHPCompatibility.Constants.NewConstants.sodium_crypto_stream_noncebytesFound"/> |
78 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_library_version_majorFound"/> |
79 | | - <exclude name="PHPCompatibility.Constants.NewConstants.sodium_library_version_minorFound"/> |
| 105 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_library_versionFound"/> |
| 106 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_library_major_versionFound"/> |
| 107 | + <exclude name="PHPCompatibility.Constants.NewConstants.sodium_library_minor_versionFound"/> |
80 | 108 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_addFound"/> |
81 | 109 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_base642binFound"/> |
82 | 110 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_bin2base64Found"/> |
|
157 | 185 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_crypto_stream_xorFound"/> |
158 | 186 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_hex2binFound"/> |
159 | 187 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_incrementFound"/> |
| 188 | + <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_library_versionFound"/> |
160 | 189 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_library_version_majorFound"/> |
161 | 190 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_library_version_minorFound"/> |
162 | 191 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.sodium_version_stringFound"/> |
|
169 | 198 | </rule> |
170 | 199 |
|
171 | 200 | <!-- Prevent false positives being thrown when run over the code of sodium_compat itself. --> |
| 201 | + <rule ref="PHPCompatibility.FunctionUse.NewFunctionParameters.assert_descriptionFound"> |
| 202 | + <exclude-pattern>/sodium_compat/autoload\.php$</exclude-pattern> |
| 203 | + </rule> |
172 | 204 | <rule ref="PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__debuginfoFound"> |
173 | 205 | <exclude-pattern>/sodium_compat/src/Core(32)?/Curve25519/Fe\.php$</exclude-pattern> |
174 | 206 | </rule> |
|
0 commit comments