We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe35cf commit d03a94aCopy full SHA for d03a94a
ext/sodium/libsodium.c
@@ -1585,7 +1585,7 @@ PHP_FUNCTION(sodium_crypto_stream_xchacha20_xor_ic)
1585
unsigned char *key;
1586
unsigned char *msg;
1587
unsigned char *nonce;
1588
- zend_long *ic;
+ zend_long ic;
1589
1590
size_t ciphertext_len;
1591
size_t key_len;
@@ -1612,7 +1612,7 @@ PHP_FUNCTION(sodium_crypto_stream_xchacha20_xor_ic)
1612
ciphertext = zend_string_checked_alloc((size_t) ciphertext_len, 0);
1613
if (crypto_stream_xchacha20_xor_ic((unsigned char *) ZSTR_VAL(ciphertext), msg,
1614
(unsigned long long) msg_len, nonce,
1615
- (unsigned long long) ic, key) != 0) {
+ (uint64_t) ic, key) != 0) {
1616
zend_string_free(ciphertext);
1617
zend_throw_exception(sodium_exception_ce, "internal error", 0);
1618
RETURN_THROWS();
0 commit comments