My Project
kdf.h
Go to the documentation of this file.
1 
51 int wc_SRTP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
52  int kdrIdx, const byte* index, byte* key1, word32 key1Sz, byte* key2,
53  word32 key2Sz, byte* key3, word32 key3Sz);
54 
104 int wc_SRTCP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
105  int kdrIdx, const byte* index, byte* key1, word32 key1Sz, byte* key2,
106  word32 key2Sz, byte* key3, word32 key3Sz);
151 int wc_SRTP_KDF_label(const byte* key, word32 keySz, const byte* salt,
152  word32 saltSz, int kdrIdx, const byte* index, byte label, byte* outKey,
153  word32 outKeySz);
198 int wc_SRTP_KDF_label(const byte* key, word32 keySz, const byte* salt,
199  word32 saltSz, int kdrIdx, const byte* index, byte label, byte* outKey,
200  word32 outKeySz);
224 int wc_SRTP_KDF_kdr_to_idx(word32 kdr);
225 
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.
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.
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.
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.