1616 \param [in] salt Random non-secret value.
1717 \param [in] saltSz Size of random in bytes.
1818 \param [in] kdrIdx Key derivation rate. kdr = 0 when -1, otherwise kdr = 2^kdrIdx.
19- \param [in] index Index value to XOR in.
19+ \param [in] idx Index value to XOR in.
2020 \param [out] key1 First key. Label value of 0x00.
2121 \param [in] key1Sz Size of first key in bytes.
2222 \param [out] key2 Second key. Label value of 0x01.
2929 \code
3030 unsigned char key[16] = { ... };
3131 unsigned char salt[14] = { ... };
32- unsigned char index [6] = { ... };
32+ unsigned char idx [6] = { ... };
3333 unsigned char keyE[16];
3434 unsigned char keyA[20];
3535 unsigned char keyS[14];
3636 int kdrIdx = 0; // Use all of index
3737 int ret;
3838
39- ret = wc_SRTP_KDF(key, sizeof(key), salt, sizeof(salt), kdrIdx, index ,
39+ ret = wc_SRTP_KDF(key, sizeof(key), salt, sizeof(salt), kdrIdx, idx ,
4040 keyE, sizeof(keyE), keyA, sizeof(keyA), keyS, sizeof(keyS));
4141 if (ret != 0) {
4242 WOLFSSL_MSG("wc_SRTP_KDF failed");
4949 \sa wc_SRTP_KDF_kdr_to_idx
5050*/
5151int 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 ,
52+ int kdrIdx , const byte * idx , byte * key1 , word32 key1Sz , byte * key2 ,
5353 word32 key2Sz , byte * key3 , word32 key3Sz );
5454
5555/*!
@@ -69,7 +69,7 @@ int wc_SRTP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
6969 \param [in] salt Random non-secret value.
7070 \param [in] saltSz Size of random in bytes.
7171 \param [in] kdrIdx Key derivation rate. kdr = 0 when -1, otherwise kdr = 2^kdrIdx.
72- \param [in] index Index value to XOR in.
72+ \param [in] idx Index value to XOR in.
7373 \param [out] key1 First key. Label value of 0x00.
7474 \param [in] key1Sz Size of first key in bytes.
7575 \param [out] key2 Second key. Label value of 0x01.
@@ -82,14 +82,14 @@ int wc_SRTP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
8282 \code
8383 unsigned char key[16] = { ... };
8484 unsigned char salt[14] = { ... };
85- unsigned char index [4] = { ... };
85+ unsigned char idx [4] = { ... };
8686 unsigned char keyE[16];
8787 unsigned char keyA[20];
8888 unsigned char keyS[14];
8989 int kdrIdx = 0; // Use all of index
9090 int ret;
9191
92- ret = wc_SRTCP_KDF(key, sizeof(key), salt, sizeof(salt), kdrIdx, index ,
92+ ret = wc_SRTCP_KDF(key, sizeof(key), salt, sizeof(salt), kdrIdx, idx ,
9393 keyE, sizeof(keyE), keyA, sizeof(keyA), keyS, sizeof(keyS));
9494 if (ret != 0) {
9595 WOLFSSL_MSG("wc_SRTP_KDF failed");
@@ -102,7 +102,7 @@ int wc_SRTP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
102102 \sa wc_SRTP_KDF_kdr_to_idx
103103*/
104104int 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 ,
105+ int kdrIdx , const byte * idx , byte * key1 , word32 key1Sz , byte * key2 ,
106106 word32 key2Sz , byte * key3 , word32 key3Sz );
107107/*!
108108 \ingroup SrtpKdf
@@ -121,7 +121,7 @@ int wc_SRTCP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
121121 \param [in] salt Random non-secret value.
122122 \param [in] saltSz Size of random in bytes.
123123 \param [in] kdrIdx Key derivation rate. kdr = 0 when -1, otherwise kdr = 2^kdrIdx.
124- \param [in] index Index value to XOR in.
124+ \param [in] idx Index value to XOR in.
125125 \param [in] label Label to use when deriving key.
126126 \param [out] outKey Derived key.
127127 \param [in] outKeySz Size of derived key in bytes.
@@ -131,12 +131,12 @@ int wc_SRTCP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
131131 \code
132132 unsigned char key[16] = { ... };
133133 unsigned char salt[14] = { ... };
134- unsigned char index [6] = { ... };
134+ unsigned char idx [6] = { ... };
135135 unsigned char keyE[16];
136136 int kdrIdx = 0; // Use all of index
137137 int ret;
138138
139- ret = wc_SRTP_KDF_label(key, sizeof(key), salt, sizeof(salt), kdrIdx, index ,
139+ ret = wc_SRTP_KDF_label(key, sizeof(key), salt, sizeof(salt), kdrIdx, idx ,
140140 WC_SRTP_LABEL_ENCRYPTION, keyE, sizeof(keyE));
141141 if (ret != 0) {
142142 WOLFSSL_MSG("wc_SRTP_KDF failed");
@@ -149,7 +149,7 @@ int wc_SRTCP_KDF(const byte* key, word32 keySz, const byte* salt, word32 saltSz,
149149 \sa wc_SRTP_KDF_kdr_to_idx
150150*/
151151int wc_SRTP_KDF_label (const byte * key , word32 keySz , const byte * salt ,
152- word32 saltSz , int kdrIdx , const byte * index , byte label , byte * outKey ,
152+ word32 saltSz , int kdrIdx , const byte * idx , byte label , byte * outKey ,
153153 word32 outKeySz );
154154/*!
155155 \ingroup SrtpKdf
@@ -168,7 +168,7 @@ int wc_SRTP_KDF_label(const byte* key, word32 keySz, const byte* salt,
168168 \param [in] salt Random non-secret value.
169169 \param [in] saltSz Size of random in bytes.
170170 \param [in] kdrIdx Key derivation rate. kdr = 0 when -1, otherwise kdr = 2^kdrIdx.
171- \param [in] index Index value to XOR in.
171+ \param [in] idx Index value to XOR in.
172172 \param [in] label Label to use when deriving key.
173173 \param [out] outKey Derived key.
174174 \param [in] outKeySz Size of derived key in bytes.
@@ -178,13 +178,13 @@ int wc_SRTP_KDF_label(const byte* key, word32 keySz, const byte* salt,
178178 \code
179179 unsigned char key[16] = { ... };
180180 unsigned char salt[14] = { ... };
181- unsigned char index [4] = { ... };
181+ unsigned char idx [4] = { ... };
182182 unsigned char keyE[16];
183183 int kdrIdx = 0; // Use all of index
184184 int ret;
185185
186186 ret = wc_SRTCP_KDF_label(key, sizeof(key), salt, sizeof(salt), kdrIdx,
187- index , WC_SRTCP_LABEL_ENCRYPTION, keyE, sizeof(keyE));
187+ idx , WC_SRTCP_LABEL_ENCRYPTION, keyE, sizeof(keyE));
188188 if (ret != 0) {
189189 WOLFSSL_MSG("wc_SRTP_KDF failed");
190190 }
@@ -196,7 +196,7 @@ int wc_SRTP_KDF_label(const byte* key, word32 keySz, const byte* salt,
196196 \sa wc_SRTP_KDF_kdr_to_idx
197197*/
198198int wc_SRTP_KDF_label (const byte * key , word32 keySz , const byte * salt ,
199- word32 saltSz , int kdrIdx , const byte * index , byte label , byte * outKey ,
199+ word32 saltSz , int kdrIdx , const byte * idx , byte label , byte * outKey ,
200200 word32 outKeySz );
201201/*!
202202 \ingroup SrtpKdf
0 commit comments