Lines Matching refs:sodium_malloc
40 constant = (unsigned char *) sodium_malloc(crypto_core_hchacha20_CONSTBYTES); in tv_hchacha20()
41 key = (unsigned char *) sodium_malloc(crypto_core_hchacha20_KEYBYTES); in tv_hchacha20()
42 in = (unsigned char *) sodium_malloc(crypto_core_hchacha20_INPUTBYTES); in tv_hchacha20()
43 out = (unsigned char *) sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); in tv_hchacha20()
44 out2 = (unsigned char *) sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); in tv_hchacha20()
113 key = (unsigned char *) sodium_malloc(crypto_stream_xchacha20_KEYBYTES); in tv_stream_xchacha20()
114 nonce = (unsigned char *) sodium_malloc(crypto_stream_xchacha20_NONCEBYTES); in tv_stream_xchacha20()
115 out = (unsigned char *) sodium_malloc(XCHACHA20_OUT_MAX); in tv_stream_xchacha20()
125 out2 = (unsigned char *) sodium_malloc(out_len); in tv_stream_xchacha20()
139 out2 = (unsigned char *) sodium_malloc(0); in tv_stream_xchacha20()
146 out = (unsigned char *) sodium_malloc(64); in tv_stream_xchacha20()
147 out2 = (unsigned char *) sodium_malloc(128); in tv_stream_xchacha20()
157 out = (unsigned char *) sodium_malloc(192); in tv_stream_xchacha20()
158 out2 = (unsigned char *) sodium_malloc(192); in tv_stream_xchacha20()
170 hex = (char *) sodium_malloc(192 * 2 + 1); in tv_stream_xchacha20()
224 key = (unsigned char *) sodium_malloc in tv_secretbox_xchacha20poly1305()
226 nonce = (unsigned char *) sodium_malloc in tv_secretbox_xchacha20poly1305()
231 m = (unsigned char *) sodium_malloc(m_len); in tv_secretbox_xchacha20poly1305()
237 out = (unsigned char *) sodium_malloc in tv_secretbox_xchacha20poly1305()
239 out2 = (unsigned char *) sodium_malloc in tv_secretbox_xchacha20poly1305()
315 pk = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES); in tv_box_xchacha20poly1305()
316 sk = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES); in tv_box_xchacha20poly1305()
317 nonce = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_NONCEBYTES); in tv_box_xchacha20poly1305()
318 mac = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_MACBYTES); in tv_box_xchacha20poly1305()
319 pc = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES); in tv_box_xchacha20poly1305()
322 m = (unsigned char *) sodium_malloc(m_len); in tv_box_xchacha20poly1305()
323 m2 = (unsigned char *) sodium_malloc(m_len); in tv_box_xchacha20poly1305()
325 out = (unsigned char *) sodium_malloc in tv_box_xchacha20poly1305()
348 out = (unsigned char *) sodium_malloc in tv_box_xchacha20poly1305()
368 out = (unsigned char *) sodium_malloc(m_len); in tv_box_xchacha20poly1305()
379 out = (unsigned char *) sodium_malloc(m_len); in tv_box_xchacha20poly1305()
393 seed = (unsigned char *) sodium_malloc in tv_box_xchacha20poly1305()