Debian Codegraph @

doc/functions/gnutls_srtp_get_keys

raw
1
2
3
4
5 @deftypefun {int} {gnutls_srtp_get_keys} (gnutls_session_t @var{session}, void * @var{key_material}, unsigned int @var{key_material_size}, gnutls_datum_t * @var{client_key}, gnutls_datum_t * @var{client_salt}, gnutls_datum_t * @var{server_key}, gnutls_datum_t * @var{server_salt})
6 @var{session}: is a @code{gnutls_session_t} type.
7
8 @var{key_material}: Space to hold the generated key material
9
10 @var{key_material_size}: The maximum size of the key material
11
12 @var{client_key}: The master client write key, pointing inside the key material
13
14 @var{client_salt}: The master client write salt, pointing inside the key material
15
16 @var{server_key}: The master server write key, pointing inside the key material
17
18 @var{server_salt}: The master server write salt, pointing inside the key material
19
20 This is a helper function to generate the keying material for SRTP.
21 It requires the space of the key material to be pre-allocated (should be at least
22 2x the maximum key size and salt size). The @code{client_key} , @code{client_salt} , @code{server_key} and @code{server_salt} are convenience datums that point inside the key material. They may
23 be @code{NULL} .
24
25 @strong{Returns:} On success the size of the key material is returned,
26 otherwise, @code{GNUTLS_E_SHORT_MEMORY_BUFFER} if the buffer given is not
27 sufficient, or a negative error code.
28
29 Since 3.1.4
30 @end deftypefun