Google is committed to advancing racial equity for Black communities. See how.

fuchsia.wlan.common.security

STRUCTS

Authentication

Defined in fuchsia.wlan.common.security/security.fidl

Pairs credentials with a particular security protocol. This type requires validation, as Protocol and Credentials may disagree. FIDL APIs that use this type generally restrict authentication to protocol.

FieldTypeDescriptionDefault
protocol Protocol No default
credentials Credentials? No default

WepCredentials

Defined in fuchsia.wlan.common.security/security.fidl

WEP credentials.

FieldTypeDescriptionDefault
key vector<uint8>

Unencoded WEP key.

This field is always a binary key; ASCII hexadecimal encoding should not be used here.

No default

ENUMS

Protocol flexible

Type: uint32

Defined in fuchsia.wlan.common.security/security.fidl

WLAN security protocols.

WPA protocols are additionally enumerated by their authentication suite (i.e., Personal vs. Enterprise).

NameValueDescription
OPEN 1

Open network security.

This indicates that no security protocol or suite is used by a WLAN; it is not to be confused with "open authentication".

WEP 2
WPA1 3
WPA2_PERSONAL 4
WPA2_ENTERPRISE 5
WPA3_PERSONAL 6
WPA3_ENTERPRISE 7

UNIONS

Credentials flexible

Defined in fuchsia.wlan.common.security/security.fidl

Credentials used to authenticate with a WLAN.

The variants of this union describe the credentials supported by a protocol or protocol suite (i.e., WEP and WPA).

Ordinal
VariantTypeDescription
1 wep WepCredentials
2 wpa WpaCredentials

WpaCredentials flexible

Defined in fuchsia.wlan.common.security/security.fidl

WPA credentials.

Ordinal
VariantTypeDescription
1 psk uint8[32]

Unencoded pre-shared key (PSK).

This field is always a binary PSK; ASCII hexadecimal encoding should not be used here.

2 passphrase vector<uint8>[63]

UTF-8 encoded passphrase.

This field is expected to use UTF-8 or compatible encoding. This is more permissive than the passphrase to PSK mapping specified in IEEE Std 802.11-2016 Appendix J.4, but UTF-8 is typically used in practice.