MCPcopy Create free account
hub / github.com/cisco/libsrtp / srtp_crypto_alloc

Function srtp_crypto_alloc

crypto/kernel/alloc.c:70–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#if defined(HAVE_STDLIB_H)
69
70void *srtp_crypto_alloc(size_t size)
71{
72 void *ptr;
73
74 if (!size) {
75 return NULL;
76 }
77
78 ptr = calloc(1, size);
79
80 if (ptr) {
81 debug_print(srtp_mod_alloc, "(location: %p) allocated", ptr);
82 } else {
83 debug_print(srtp_mod_alloc, "allocation failed (asked for %zu bytes)\n",
84 size);
85 }
86
87 return ptr;
88}
89
90void srtp_crypto_free(void *ptr)
91{

Callers 15

srtp_aes_gcm_nss_allocFunction · 0.85
srtp_aes_icm_nss_allocFunction · 0.85
srtp_aes_icm_allocFunction · 0.85
srtp_null_cipher_allocFunction · 0.85
cipher_array_alloc_initFunction · 0.85
srtp_hmac_mbedtls_allocFunction · 0.85

Calls

no outgoing calls

Tested by 2

cipher_array_alloc_initFunction · 0.68