[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 if (!is_callable('sodium_crypto_stream_xchacha20')) { 4 /** 5 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20() 6 * @param int $len 7 * @param string $nonce 8 * @param string $key 9 * @return string 10 * @throws SodiumException 11 * @throws TypeError 12 */ 13 function sodium_crypto_stream_xchacha20( 14 $len, 15 $nonce, 16 #[\SensitiveParameter] 17 $key 18 ) { 19 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true); 20 } 21 } 22 if (!is_callable('sodium_crypto_stream_xchacha20_keygen')) { 23 /** 24 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen() 25 * @return string 26 * @throws Exception 27 */ 28 function sodium_crypto_stream_xchacha20_keygen() 29 { 30 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen(); 31 } 32 } 33 if (!is_callable('sodium_crypto_stream_xchacha20_xor')) { 34 /** 35 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor() 36 * @param string $message 37 * @param string $nonce 38 * @param string $key 39 * @return string 40 * @throws SodiumException 41 * @throws TypeError 42 */ 43 function sodium_crypto_stream_xchacha20_xor( 44 #[\SensitiveParameter] 45 $message, 46 $nonce, 47 #[\SensitiveParameter] 48 $key 49 ) { 50 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true); 51 } 52 } 53 if (!is_callable('sodium_crypto_stream_xchacha20_xor_ic')) { 54 /** 55 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic() 56 * @param string $message 57 * @param string $nonce 58 * @param int $counter 59 * @param string $key 60 * @return string 61 * @throws SodiumException 62 * @throws TypeError 63 */ 64 function sodium_crypto_stream_xchacha20_xor_ic( 65 #[\SensitiveParameter] 66 $message, 67 $nonce, 68 $counter, 69 #[\SensitiveParameter] 70 $key 71 ) { 72 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key, true); 73 } 74 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |