3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 18:38:48 +02:00

crypto: Make const correct

This commit is contained in:
Denis Kenzior 2014-12-26 14:11:43 -06:00
parent dab93ef14a
commit 1c4e3bc774
2 changed files with 6 additions and 6 deletions

View File

@ -127,9 +127,9 @@ int crypto_psk_from_passphrase(const char *passphrase,
* Max operations for nonces are with the nonces treated as positive integers * Max operations for nonces are with the nonces treated as positive integers
* converted as specified in 8.2.2. * converted as specified in 8.2.2.
*/ */
bool crypto_derive_ptk(uint8_t *pmk, size_t pmk_len, const char *label, bool crypto_derive_ptk(const uint8_t *pmk, size_t pmk_len, const char *label,
uint8_t *addr1, uint8_t *addr2, const uint8_t *addr1, const uint8_t *addr2,
uint8_t *nonce1, uint8_t *nonce2, const uint8_t *nonce1, const uint8_t *nonce2,
uint8_t *out_ptk, size_t ptk_len) uint8_t *out_ptk, size_t ptk_len)
{ {
/* Nonce length is 32 */ /* Nonce length is 32 */

View File

@ -38,7 +38,7 @@ int crypto_psk_from_passphrase(const char *passphrase,
const unsigned char *ssid, size_t ssid_len, const unsigned char *ssid, size_t ssid_len,
unsigned char *out_psk); unsigned char *out_psk);
bool crypto_derive_ptk(uint8_t *pmk, size_t pmk_len, const char *label, bool crypto_derive_ptk(const uint8_t *pmk, size_t pmk_len, const char *label,
uint8_t *addr1, uint8_t *addr2, const uint8_t *addr1, const uint8_t *addr2,
uint8_t *nonce1, uint8_t *nonce2, const uint8_t *nonce1, const uint8_t *nonce2,
uint8_t *out_ptk, size_t ptk_len); uint8_t *out_ptk, size_t ptk_len);