File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1585,7 +1585,7 @@ PHP_FUNCTION(sodium_crypto_stream_xchacha20_xor_ic)
1585
1585
unsigned char * key ;
1586
1586
unsigned char * msg ;
1587
1587
unsigned char * nonce ;
1588
- zend_long * ic ;
1588
+ zend_long ic ;
1589
1589
1590
1590
size_t ciphertext_len ;
1591
1591
size_t key_len ;
@@ -1612,7 +1612,7 @@ PHP_FUNCTION(sodium_crypto_stream_xchacha20_xor_ic)
1612
1612
ciphertext = zend_string_checked_alloc ((size_t ) ciphertext_len , 0 );
1613
1613
if (crypto_stream_xchacha20_xor_ic ((unsigned char * ) ZSTR_VAL (ciphertext ), msg ,
1614
1614
(unsigned long long ) msg_len , nonce ,
1615
- (unsigned long long ) ic , key ) != 0 ) {
1615
+ (uint64_t ) ic , key ) != 0 ) {
1616
1616
zend_string_free (ciphertext );
1617
1617
zend_throw_exception (sodium_exception_ce , "internal error" , 0 );
1618
1618
RETURN_THROWS ();
You can’t perform that action at this time.
0 commit comments