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 
258 int wc_KDA_KDF_onestep(const byte* z, word32 zSz,
259  const byte* fixedInfo, word32 fixedInfoSz, word32 derivedSecretSz,
260  enum wc_HashType hashType, byte* output, word32 outputSz);
261 
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.
int wc_KDA_KDF_onestep(const byte *z, word32 zSz, const byte *fixedInfo, word32 fixedInfoSz, word32 derivedSecretSz, enum wc_HashType hashType, byte *output, word32 outputSz)
Performs the single-step key derivation function (KDF) as specified in SP800-56C option 1.