My Project
Functions
kdf.h File Reference

Go to the source code of this file.

Functions

int wc_SRTP_KDF (const byte *key, word32 keySz, const byte *salt, word32 saltSz, int kdrIdx, const byte *index, byte *key1, word32 key1Sz, byte *key2, word32 key2Sz, byte *key3, word32 key3Sz)
 This function derives keys using SRTP KDF algorithm. More...
 
int wc_SRTCP_KDF (const byte *key, word32 keySz, const byte *salt, word32 saltSz, int kdrIdx, const byte *index, byte *key1, word32 key1Sz, byte *key2, word32 key2Sz, byte *key3, word32 key3Sz)
 This function derives keys using SRTCP KDF algorithm. More...
 
int wc_SRTP_KDF_label (const byte *key, word32 keySz, const byte *salt, word32 saltSz, int kdrIdx, const byte *index, byte label, byte *outKey, word32 outKeySz)
 This function derives a key with label using SRTP KDF algorithm. More...
 
int wc_SRTP_KDF_kdr_to_idx (word32 kdr)
 This function converts a kdr value to an index to use in SRTP/SRTCP KDF API. More...