mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
crypto: Make const correct
This commit is contained in:
parent
dab93ef14a
commit
1c4e3bc774
@ -127,9 +127,9 @@ int crypto_psk_from_passphrase(const char *passphrase,
|
||||
* Max operations for nonces are with the nonces treated as positive integers
|
||||
* converted as specified in 8.2.2.
|
||||
*/
|
||||
bool crypto_derive_ptk(uint8_t *pmk, size_t pmk_len, const char *label,
|
||||
uint8_t *addr1, uint8_t *addr2,
|
||||
uint8_t *nonce1, uint8_t *nonce2,
|
||||
bool crypto_derive_ptk(const uint8_t *pmk, size_t pmk_len, const char *label,
|
||||
const uint8_t *addr1, const uint8_t *addr2,
|
||||
const uint8_t *nonce1, const uint8_t *nonce2,
|
||||
uint8_t *out_ptk, size_t ptk_len)
|
||||
{
|
||||
/* Nonce length is 32 */
|
||||
|
@ -38,7 +38,7 @@ int crypto_psk_from_passphrase(const char *passphrase,
|
||||
const unsigned char *ssid, size_t ssid_len,
|
||||
unsigned char *out_psk);
|
||||
|
||||
bool crypto_derive_ptk(uint8_t *pmk, size_t pmk_len, const char *label,
|
||||
uint8_t *addr1, uint8_t *addr2,
|
||||
uint8_t *nonce1, uint8_t *nonce2,
|
||||
bool crypto_derive_ptk(const uint8_t *pmk, size_t pmk_len, const char *label,
|
||||
const uint8_t *addr1, const uint8_t *addr2,
|
||||
const uint8_t *nonce1, const uint8_t *nonce2,
|
||||
uint8_t *out_ptk, size_t ptk_len);
|
||||
|
Loading…
Reference in New Issue
Block a user