Skip to content

Commit fb4bd86

Browse files
authored
Add sodium_xxxx_keygen function stubs (#4987)
1 parent 2ccd7b9 commit fb4bd86

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

stubs/core.stub

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,76 @@ function sodium_bin2base64(string $string, int $id): string {}
5252
*/
5353
function sodium_bin2hex(string $string): string {}
5454

55+
/**
56+
* @return non-empty-string
57+
*/
58+
function sodium_crypto_auth_keygen(): string {}
59+
60+
/**
61+
* @return non-empty-string
62+
*/
63+
function sodium_crypto_aead_aegis128l_keygen(): string {}
64+
65+
/**
66+
* @return non-empty-string
67+
*/
68+
function sodium_crypto_aead_aegis256_keygen(): string {}
69+
70+
/**
71+
* @return non-empty-string
72+
*/
73+
function sodium_crypto_aead_aes256gcm_keygen(): string {}
74+
75+
/**
76+
* @return non-empty-string
77+
*/
78+
function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}
79+
80+
/**
81+
* @return non-empty-string
82+
*/
83+
function sodium_crypto_aead_chacha20poly1305_keygen(): string {}
84+
85+
/**
86+
* @return non-empty-string
87+
*/
88+
function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {}
89+
90+
/**
91+
* @return non-empty-string
92+
*/
93+
function sodium_crypto_generichash_keygen(): string {}
94+
95+
/**
96+
* @return non-empty-string
97+
*/
98+
function sodium_crypto_kdf_keygen(): string {}
99+
100+
/**
101+
* @return non-empty-string
102+
*/
103+
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
104+
55105
/**
56106
* @return non-empty-string
57107
*/
58108
function sodium_crypto_secretbox_keygen(): string {}
59109

110+
/**
111+
* @return non-empty-string
112+
*/
113+
function sodium_crypto_shorthash_keygen(): string {}
114+
115+
/**
116+
* @return non-empty-string
117+
*/
118+
function sodium_crypto_stream_keygen(): string {}
119+
120+
/**
121+
* @return non-empty-string
122+
*/
123+
function sodium_crypto_stream_xchacha20_keygen(): string {}
124+
60125
/**
61126
* @return ($string is non-empty-string ? non-empty-string : string)
62127
*/

0 commit comments

Comments
 (0)