mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 20:12:37 +01:00
handshake: add handshake_state_get_kek_len
This commit is contained in:
parent
89017afdb2
commit
e940fc9282
@ -453,6 +453,16 @@ const uint8_t *handshake_state_get_kck(struct handshake_state *s)
|
|||||||
return s->ptk;
|
return s->ptk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t handshake_state_get_kek_len(struct handshake_state *s)
|
||||||
|
{
|
||||||
|
size_t kek_size;
|
||||||
|
|
||||||
|
if (!handshake_get_key_sizes(s, NULL, NULL, &kek_size))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return kek_size;
|
||||||
|
}
|
||||||
|
|
||||||
const uint8_t *handshake_state_get_kek(struct handshake_state *s)
|
const uint8_t *handshake_state_get_kek(struct handshake_state *s)
|
||||||
{
|
{
|
||||||
size_t kck_size;
|
size_t kck_size;
|
||||||
|
@ -169,6 +169,7 @@ void handshake_state_set_pmkid(struct handshake_state *s, const uint8_t *pmkid);
|
|||||||
bool handshake_state_derive_ptk(struct handshake_state *s);
|
bool handshake_state_derive_ptk(struct handshake_state *s);
|
||||||
size_t handshake_state_get_ptk_size(struct handshake_state *s);
|
size_t handshake_state_get_ptk_size(struct handshake_state *s);
|
||||||
const uint8_t *handshake_state_get_kck(struct handshake_state *s);
|
const uint8_t *handshake_state_get_kck(struct handshake_state *s);
|
||||||
|
size_t handshake_state_get_kek_len(struct handshake_state *s);
|
||||||
const uint8_t *handshake_state_get_kek(struct handshake_state *s);
|
const uint8_t *handshake_state_get_kek(struct handshake_state *s);
|
||||||
void handshake_state_install_ptk(struct handshake_state *s);
|
void handshake_state_install_ptk(struct handshake_state *s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user