OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sodium_malloc
(Results
1 - 25
of
32
) sorted by relevancy
1
2
/src/sys/external/isc/libsodium/dist/test/default/
secretbox_easy2.c
18
m = (unsigned char *)
sodium_malloc
(mlen);
19
m2 = (unsigned char *)
sodium_malloc
(mlen);
20
c = (unsigned char *)
sodium_malloc
(crypto_secretbox_MACBYTES + mlen);
21
nonce = (unsigned char *)
sodium_malloc
(crypto_secretbox_NONCEBYTES);
22
k = (unsigned char *)
sodium_malloc
(crypto_secretbox_KEYBYTES);
23
mac = (unsigned char *)
sodium_malloc
(crypto_secretbox_MACBYTES);
verify1.c
15
v16 = (unsigned char *)
sodium_malloc
(16);
16
v16x = (unsigned char *)
sodium_malloc
(16);
17
v32 = (unsigned char *)
sodium_malloc
(32);
18
v32x = (unsigned char *)
sodium_malloc
(32);
19
v64 = (unsigned char *)
sodium_malloc
(64);
20
v64x = (unsigned char *)
sodium_malloc
(64);
kdf.c
15
context = (char *)
sodium_malloc
(crypto_kdf_CONTEXTBYTES);
17
master_key = (unsigned char *)
sodium_malloc
(crypto_kdf_KEYBYTES);
21
subkey = (unsigned char *)
sodium_malloc
(crypto_kdf_BYTES_MAX);
32
subkey = (unsigned char *)
sodium_malloc
(crypto_kdf_BYTES_MAX);
metamorphic.c
23
m = (unsigned char *)
sodium_malloc
(mlen);
27
k = (unsigned char *)
sodium_malloc
(klen);
31
h = (unsigned char *)
sodium_malloc
(hlen);
32
h2 = (unsigned char *)
sodium_malloc
(hlen);
69
m = (unsigned char *)
sodium_malloc
(mlen);
70
k = (unsigned char *)
sodium_malloc
(crypto_onetimeauth_KEYBYTES);
71
h = (unsigned char *)
sodium_malloc
(crypto_onetimeauth_BYTES);
72
h2 = (unsigned char *)
sodium_malloc
(crypto_onetimeauth_BYTES);
109
m = (unsigned char *)
sodium_malloc
(mlen);
110
k = (unsigned char *)
sodium_malloc
(crypto_auth_hmacsha256_KEYBYTES)
[
all
...]
sodium_utils2.c
41
if (
sodium_malloc
(SIZE_MAX - 1U) != NULL) {
44
if (
sodium_malloc
(0U) == NULL) {
58
sodium_free(
sodium_malloc
(0U));
62
buf =
sodium_malloc
(size);
80
buf =
sodium_malloc
(size);
kx.c
22
seed = (unsigned char *)
sodium_malloc
(crypto_kx_SEEDBYTES);
26
client_pk = (unsigned char *)
sodium_malloc
(crypto_kx_PUBLICKEYBYTES);
27
client_sk = (unsigned char *)
sodium_malloc
(crypto_kx_SECRETKEYBYTES);
35
server_pk = (unsigned char *)
sodium_malloc
(crypto_kx_PUBLICKEYBYTES);
36
server_sk = (unsigned char *)
sodium_malloc
(crypto_kx_SECRETKEYBYTES);
39
client_rx = (unsigned char *)
sodium_malloc
(crypto_kx_SESSIONKEYBYTES);
40
client_tx = (unsigned char *)
sodium_malloc
(crypto_kx_SESSIONKEYBYTES);
50
server_rx = (unsigned char *)
sodium_malloc
(crypto_kx_SESSIONKEYBYTES);
51
server_tx = (unsigned char *)
sodium_malloc
(crypto_kx_SESSIONKEYBYTES);
core3.c
31
secondkey = (unsigned char *)
sodium_malloc
(32);
33
noncesuffix = (unsigned char *)
sodium_malloc
(8);
35
c = (unsigned char *)
sodium_malloc
(16);
37
in = (unsigned char *)
sodium_malloc
(16);
38
output = (unsigned char *)
sodium_malloc
(output_len);
39
h = (unsigned char *)
sodium_malloc
(32);
xchacha20.c
40
constant = (unsigned char *)
sodium_malloc
(crypto_core_hchacha20_CONSTBYTES);
41
key = (unsigned char *)
sodium_malloc
(crypto_core_hchacha20_KEYBYTES);
42
in = (unsigned char *)
sodium_malloc
(crypto_core_hchacha20_INPUTBYTES);
43
out = (unsigned char *)
sodium_malloc
(crypto_core_hchacha20_OUTPUTBYTES);
44
out2 = (unsigned char *)
sodium_malloc
(crypto_core_hchacha20_OUTPUTBYTES);
113
key = (unsigned char *)
sodium_malloc
(crypto_stream_xchacha20_KEYBYTES);
114
nonce = (unsigned char *)
sodium_malloc
(crypto_stream_xchacha20_NONCEBYTES);
115
out = (unsigned char *)
sodium_malloc
(XCHACHA20_OUT_MAX);
125
out2 = (unsigned char *)
sodium_malloc
(out_len);
139
out2 = (unsigned char *)
sodium_malloc
(0)
[
all
...]
box7.c
22
m = (unsigned char *)
sodium_malloc
(mlen_max);
23
c = (unsigned char *)
sodium_malloc
(mlen_max);
24
m2 = (unsigned char *)
sodium_malloc
(mlen_max);
box8.c
23
m = (unsigned char *)
sodium_malloc
(mlen_max);
24
c = (unsigned char *)
sodium_malloc
(mlen_max);
25
m2 = (unsigned char *)
sodium_malloc
(mlen_max);
box_seal.c
19
m = (unsigned char *)
sodium_malloc
(m_len);
20
m2 = (unsigned char *)
sodium_malloc
(m_len);
21
c = (unsigned char *)
sodium_malloc
(c_len);
scalarmult6.c
26
k = (unsigned char *)
sodium_malloc
(crypto_scalarmult_BYTES);
27
bobsk = (unsigned char *)
sodium_malloc
(crypto_scalarmult_SCALARBYTES);
28
alicepk = (unsigned char *)
sodium_malloc
(crypto_scalarmult_SCALARBYTES);
aead_aes256gcm.c
3101
key = (unsigned char *)
sodium_malloc
(crypto_aead_aes256gcm_KEYBYTES);
3102
nonce = (unsigned char *)
sodium_malloc
(crypto_aead_aes256gcm_NPUBBYTES);
3103
mac = (unsigned char *)
sodium_malloc
(crypto_aead_aes256gcm_ABYTES);
3115
message = (unsigned char *)
sodium_malloc
(message_len);
3120
ad = (unsigned char *)
sodium_malloc
(ad_len);
3126
expected_ciphertext = (unsigned char *)
sodium_malloc
(ciphertext_len);
3135
ciphertext = (unsigned char *)
sodium_malloc
(ciphertext_len);
3136
detached_ciphertext = (unsigned char *)
sodium_malloc
(detached_ciphertext_len);
3148
hex = (char *)
sodium_malloc
((size_t) ciphertext_len * 2 + 1);
3162
hex = (char *)
sodium_malloc
((size_t) found_ciphertext_len * 2 + 1)
[
all
...]
box_easy2.c
34
m = (unsigned char *)
sodium_malloc
(m_size);
35
m2 = (unsigned char *)
sodium_malloc
(m2_size);
36
c = (unsigned char *)
sodium_malloc
(c_size);
37
alicepk = (unsigned char *)
sodium_malloc
(crypto_box_PUBLICKEYBYTES);
38
alicesk = (unsigned char *)
sodium_malloc
(crypto_box_SECRETKEYBYTES);
39
bobpk = (unsigned char *)
sodium_malloc
(crypto_box_PUBLICKEYBYTES);
40
bobsk = (unsigned char *)
sodium_malloc
(crypto_box_SECRETKEYBYTES);
41
mac = (unsigned char *)
sodium_malloc
(crypto_box_MACBYTES);
42
nonce = (unsigned char *)
sodium_malloc
(crypto_box_NONCEBYTES);
43
k1 = (unsigned char *)
sodium_malloc
(crypto_box_BEFORENMBYTES)
[
all
...]
secretstream.c
23
sodium_malloc
(crypto_secretstream_xchacha20poly1305_statebytes());
25
sodium_malloc
(crypto_secretstream_xchacha20poly1305_statebytes());
27
sodium_malloc
(crypto_secretstream_xchacha20poly1305_HEADERBYTES);
35
sodium_malloc
(m1_len + crypto_secretstream_xchacha20poly1305_ABYTES);
37
sodium_malloc
(m2_len + crypto_secretstream_xchacha20poly1305_ABYTES);
39
sodium_malloc
(m3_len + crypto_secretstream_xchacha20poly1305_ABYTES);
41
sodium_malloc
((m1_len | m2_len | m3_len) + crypto_secretstream_xchacha20poly1305_ABYTES);
43
ad = (unsigned char *)
sodium_malloc
(ad_len);
44
m1 = (unsigned char *)
sodium_malloc
(m1_len);
45
m2 = (unsigned char *)
sodium_malloc
(m2_len)
[
all
...]
scalarmult.c
29
(unsigned char *)
sodium_malloc
(crypto_scalarmult_BYTES);
31
(unsigned char *)
sodium_malloc
(crypto_scalarmult_BYTES);
32
unsigned char *k = (unsigned char *)
sodium_malloc
(crypto_scalarmult_BYTES);
generichash.c
1304
key = (unsigned char *)
sodium_malloc
(crypto_generichash_KEYBYTES_MAX);
1305
out = (unsigned char *)
sodium_malloc
(crypto_generichash_BYTES_MAX);
1306
expected_out = (unsigned char *)
sodium_malloc
(crypto_generichash_BYTES_MAX);
1317
in = (unsigned char *)
sodium_malloc
(in_len);
scalarmult_ed25519.c
27
n = (unsigned char *)
sodium_malloc
(crypto_scalarmult_ed25519_SCALARBYTES);
28
p = (unsigned char *)
sodium_malloc
(crypto_scalarmult_ed25519_BYTES);
29
q = (unsigned char *)
sodium_malloc
(crypto_scalarmult_ed25519_BYTES);
30
q2 = (unsigned char *)
sodium_malloc
(crypto_scalarmult_ed25519_BYTES);
aead_xchacha20poly1305.c
24
unsigned char *m = (unsigned char *)
sodium_malloc
(MLEN);
30
unsigned char *c = (unsigned char *)
sodium_malloc
(CLEN);
31
unsigned char *detached_c = (unsigned char *)
sodium_malloc
(MLEN);
32
unsigned char *key2 = (unsigned char *)
sodium_malloc
(crypto_aead_xchacha20poly1305_ietf_KEYBYTES);
33
unsigned char *mac = (unsigned char *)
sodium_malloc
(crypto_aead_xchacha20poly1305_ietf_ABYTES);
34
unsigned char *m2 = (unsigned char *)
sodium_malloc
(MLEN);
aead_chacha20poly1305.c
24
unsigned char *c = (unsigned char *)
sodium_malloc
(CLEN);
25
unsigned char *detached_c = (unsigned char *)
sodium_malloc
(MLEN);
26
unsigned char *mac = (unsigned char *)
sodium_malloc
(crypto_aead_chacha20poly1305_ABYTES);
27
unsigned char *m2 = (unsigned char *)
sodium_malloc
(MLEN);
199
unsigned char *m = (unsigned char *)
sodium_malloc
(MLEN);
205
unsigned char *c = (unsigned char *)
sodium_malloc
(CLEN);
206
unsigned char *detached_c = (unsigned char *)
sodium_malloc
(MLEN);
207
unsigned char *mac = (unsigned char *)
sodium_malloc
(crypto_aead_chacha20poly1305_ietf_ABYTES);
208
unsigned char *m2 = (unsigned char *)
sodium_malloc
(MLEN);
core_ed25519.c
45
h = (unsigned char *)
sodium_malloc
(crypto_core_ed25519_UNIFORMBYTES);
46
p = (unsigned char *)
sodium_malloc
(crypto_core_ed25519_BYTES);
57
p2 = (unsigned char *)
sodium_malloc
(crypto_core_ed25519_BYTES);
58
p3 = (unsigned char *)
sodium_malloc
(crypto_core_ed25519_BYTES);
79
sc = (unsigned char *)
sodium_malloc
(crypto_scalarmult_ed25519_SCALARBYTES);
pwhash_scrypt.c
282
out = (char *)
sodium_malloc
(strlen(tests[i].out) + 1U);
285
passwd = (char *)
sodium_malloc
(strlen(tests[i].passwd) + 1U);
305
salt = (char *)
sodium_malloc
(crypto_pwhash_scryptsalsa208sha256_SALTBYTES);
307
(char *)
sodium_malloc
(crypto_pwhash_scryptsalsa208sha256_STRBYTES);
309
(char *)
sodium_malloc
(crypto_pwhash_scryptsalsa208sha256_STRBYTES);
keygen.c
45
key = (unsigned char *)
sodium_malloc
(tv->key_len);
sodium_utils3.c
50
buf =
sodium_malloc
(size);
pwhash_argon2i.c
213
out = (char *)
sodium_malloc
(strlen(tests[i].out) + 1U);
216
passwd = (char *)
sodium_malloc
(strlen(tests[i].passwd) + 1U);
237
salt = (char *)
sodium_malloc
(crypto_pwhash_SALTBYTES);
238
str_out = (char *)
sodium_malloc
(crypto_pwhash_STRBYTES);
239
str_out2 = (char *)
sodium_malloc
(crypto_pwhash_STRBYTES);
Completed in 24 milliseconds
1
2
Indexes created Thu Oct 02 01:09:59 GMT 2025