From 6c95fcdf7348a6265debeac405c41985909a7488 Mon Sep 17 00:00:00 2001 From: Emanuele Panzeri Date: Wed, 18 Feb 2026 11:45:32 +0100 Subject: [PATCH 01/13] Add sodium_crypto_auth_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 3cb8df947f..ebc7e46c17 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -52,6 +52,11 @@ function sodium_bin2base64(string $string, int $id): string {} */ function sodium_bin2hex(string $string): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_auth_keygen(): string {} + /** * @return non-empty-string */ From 34167c6ab99a20963c916b3414f82ea4dcff47e5 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:55:27 +0100 Subject: [PATCH 02/13] Add sodium_crypto_aead_aegis128l_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index ebc7e46c17..ac70ef06b2 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -57,6 +57,11 @@ function sodium_bin2hex(string $string): string {} */ function sodium_crypto_auth_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_aegis128l_keygen(): string {} + /** * @return non-empty-string */ From 0f20d9dbcaa70de58452da3ccd441b6232cf3540 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:56:03 +0100 Subject: [PATCH 03/13] Add sodium_crypto_aead_aegis256_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index ac70ef06b2..9d82042e04 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -62,6 +62,11 @@ function sodium_crypto_auth_keygen(): string {} */ function sodium_crypto_aead_aegis128l_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_aegis256_keygen(): string {} + /** * @return non-empty-string */ From a21e557d7b8ec5cf93af57fdecc61a6f30546f72 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:56:31 +0100 Subject: [PATCH 04/13] Add sodium_crypto_aead_aes256gcm_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 9d82042e04..485b23bb5e 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -67,6 +67,11 @@ function sodium_crypto_aead_aegis128l_keygen(): string {} */ function sodium_crypto_aead_aegis256_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_aes256gcm_keygen(): string {} + /** * @return non-empty-string */ From 904e11550efa02b9ca002f132d363b70cf73ea64 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:57:05 +0100 Subject: [PATCH 05/13] Add sodium_crypto_aead_chacha20poly1305_ietf_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 485b23bb5e..41c123cd8a 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -72,6 +72,11 @@ function sodium_crypto_aead_aegis256_keygen(): string {} */ function sodium_crypto_aead_aes256gcm_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {} + /** * @return non-empty-string */ From d2dd526187fc9ad3d7ce80019c99269cd22f53db Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:57:28 +0100 Subject: [PATCH 06/13] Add sodium_crypto_aead_chacha20poly1305_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 41c123cd8a..e0d90f411b 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -77,6 +77,11 @@ function sodium_crypto_aead_aes256gcm_keygen(): string {} */ function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_chacha20poly1305_keygen(): string {} + /** * @return non-empty-string */ From 64f016dc1200640275646c59a2734a99619ece50 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:57:57 +0100 Subject: [PATCH 07/13] Add sodium_crypto_aead_xchacha20poly1305_ietf_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index e0d90f411b..925f7a6f51 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -82,6 +82,11 @@ function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {} */ function sodium_crypto_aead_chacha20poly1305_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {} + /** * @return non-empty-string */ From 86a2e794537a7aa4c362bdb6d73ba4781edf11bf Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:58:54 +0100 Subject: [PATCH 08/13] Add sodium_crypto_generichash_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 925f7a6f51..ef2419da76 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -87,6 +87,11 @@ function sodium_crypto_aead_chacha20poly1305_keygen(): string {} */ function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_generichash_keygen(): string {} + /** * @return non-empty-string */ From 413b671170149ec49e1d324f4ca9444dd3ab4013 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:59:21 +0100 Subject: [PATCH 09/13] Add sodium_crypto_kdf_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index ef2419da76..8fa100552d 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -92,6 +92,11 @@ function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {} */ function sodium_crypto_generichash_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_kdf_keygen(): string {} + /** * @return non-empty-string */ From c435f840f8c8991e32a9452665ee7c2086ccf7df Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 11:59:53 +0100 Subject: [PATCH 10/13] Add sodium_crypto_secretstream_xchacha20poly1305_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index 8fa100552d..ebbdaab35e 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -97,6 +97,11 @@ function sodium_crypto_generichash_keygen(): string {} */ function sodium_crypto_kdf_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {} + /** * @return non-empty-string */ From 6016e747a6ecbae660df5d8cc95fb855b10bf804 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 12:00:28 +0100 Subject: [PATCH 11/13] Add sodium_crypto_stream_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index ebbdaab35e..f5e7c9b12a 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -107,6 +107,11 @@ function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {} */ function sodium_crypto_secretbox_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_stream_keygen(): string {} + /** * @return ($string is non-empty-string ? non-empty-string : string) */ From 98df1870719802e07e39c223cdbf86dbc2fee82d Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 12:00:50 +0100 Subject: [PATCH 12/13] Add sodium_crypto_stream_xchacha20_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index f5e7c9b12a..fe00062801 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -112,6 +112,11 @@ function sodium_crypto_secretbox_keygen(): string {} */ function sodium_crypto_stream_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_stream_xchacha20_keygen(): string {} + /** * @return ($string is non-empty-string ? non-empty-string : string) */ From 857e136e482efd6e39558162c8088c777f12c875 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 18 Feb 2026 12:01:23 +0100 Subject: [PATCH 13/13] Add sodium_crypto_shorthash_keygen function stub --- stubs/core.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/core.stub b/stubs/core.stub index fe00062801..a485114109 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -107,6 +107,11 @@ function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {} */ function sodium_crypto_secretbox_keygen(): string {} +/** + * @return non-empty-string + */ +function sodium_crypto_shorthash_keygen(): string {} + /** * @return non-empty-string */