Changeset 45344 for trunk/src/wp-includes/sodium_compat/lib/php72compat.php
- Timestamp:
- 05/17/2019 10:57:19 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/lib/php72compat.php
r44953 r45344 108 108 * @param string $nonce 109 109 * @param string $key 110 * @return string 110 * @return string|bool 111 111 */ 112 112 function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key) … … 154 154 * @param string $nonce 155 155 * @param string $key 156 * @return string 156 * @return string|bool 157 157 */ 158 158 function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key) … … 200 200 * @param string $nonce 201 201 * @param string $key 202 * @return string 202 * @return string|bool 203 203 */ 204 204 function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) … … 246 246 * @param string $nonce 247 247 * @param string $key 248 * @return string 248 * @return string|bool 249 249 */ 250 250 function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) 251 251 { 252 252 try { 253 return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key );253 return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key, true); 254 254 } catch (Error $ex) { 255 255 return false; … … 272 272 function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key) 273 273 { 274 return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key );274 return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key, true); 275 275 } 276 276 } … … 953 953 /** 954 954 * @see ParagonIE_Sodium_Compat::increment() 955 * @param &string $string955 * @param string $string 956 956 * @return void 957 957 * @throws SodiumException … … 1010 1010 /** 1011 1011 * @see ParagonIE_Sodium_Compat::memzero() 1012 * @param string &$str1012 * @param string $str 1013 1013 * @return void 1014 1014 * @throws SodiumException
Note: See TracChangeset
for help on using the changeset viewer.