mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-29 19:40:44 +02: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
|
* 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 */
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user