nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches

◆ wifi_kmu_key_reverse_byte_order()

int wifi_kmu_key_reverse_byte_order ( void *restrict dst,
const void *restrict src,
uint32_t key_length_bytes )

#include <include/wifi_kmu/wifi_kmu.h>

Reverse key byte order before passing into KMU.

Keys from wpa_supplicant have a different byte order than expected by nrf71 Wi-Fi hardware. Reverse key byte order from src and copy to dst. dst and src must not overlap.

Parameters
[in]dstDestination buffer to copy to.
[in]srcSource buffer to read from.
[in]key_length_bytesKey length in bytes.
Returns
0 on success, -1 on failure.