My Project
|
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... | |
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. More... | |
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.
[in] | z | The input keying material. |
[in] | zSz | The size of the input keying material. |
[in] | fixedInfo | The fixed information to be included in the KDF. |
[in] | fixedInfoSz | The size of the fixed information. |
[in] | derivedSecretSz | The desired size of the derived secret. |
[in] | hashType | The hash algorithm to be used in the KDF. |
[out] | output | The buffer to store the derived secret. |
[in] | outputSz | The size of the output buffer. |
Example