Loading wifi/aidl/aidl_api/android.hardware.wifi/current/android/hardware/wifi/NanDataPathSecurityConfig.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,10 @@ parcelable NanDataPathSecurityConfig { byte[32] pmk; byte[] passphrase; byte[16] scid; boolean enable16ReplyCountersForTksa; boolean enable16ReplyCountersForGtksa; boolean supportGtkAndIgtk; boolean supportBigtksa; boolean enableNcsBip256; boolean requiresEnhancedFrameProtection; } wifi/aidl/android/hardware/wifi/NanDataPathSecurityConfig.aidl +45 −0 Original line number Diff line number Diff line Loading @@ -58,4 +58,49 @@ parcelable NanDataPathSecurityConfig { * setting up the Secure Data Path. */ byte[16] scid; /** * Enables the 16 replay counter for ND-TKSA(NAN Data Pairwise Security Association) and * NM-TKSA(NAN managerment Pairwise Security Association), if set to false will use 4 replay * counter as default * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enable16ReplyCountersForTksa; /** * Enables the 16 replay counter for GTKSA(Group Transient Key security associations), if set to * false will use 4 replay counter as default. * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enable16ReplyCountersForGtksa; /** * GTK(Group Transient Key) used to protect group addressed data frames, * IGTK(Integrity Group Transient Key) used to protect multicast management frames, set to true * if supported. * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean supportGtkAndIgtk; /** * BIGTK(Beacon Integrity Group Transient Key) used to protect Beacon frames, set to true if * supported. * Ref: Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean supportBigtksa; /** * Enables NCS-BIP-256 for IGTKSA(Integrity Group Transient Key security associations) * and BIGTK(Beacon Integrity Group Transient Key security associations), if set to false will * use NCS-BIP-128 as default * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enableNcsBip256; /** * Require enhanced frame protection if supported, which includes multicast management frame * protection, group addressed data protection and beacon frame protection. * Wi-Fi Aware spec 4.0: 7.3 frame protection */ boolean requiresEnhancedFrameProtection; } wifi/aidl/default/aidl_struct_util.cpp +22 −0 Original line number Diff line number Diff line Loading @@ -2090,6 +2090,17 @@ bool convertAidlNanDataPathInitiatorRequestToLegacy( memcpy(legacy_request->scid, aidl_request.securityConfig.scid.data(), legacy_request->scid_len); legacy_request->publish_subscribe_id = static_cast<uint8_t>(aidl_request.discoverySessionId); legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForTksa ? 0x1 : 0x0; legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForGtksa ? 0x8 : 0x0; if (aidl_request.securityConfig.supportGtkAndIgtk) { legacy_request->csia_capabilities |= aidl_request.securityConfig.supportBigtksa ? 0x4 : 0x2; } legacy_request->csia_capabilities |= aidl_request.securityConfig.enableNcsBip256 ? 0x16 : 0x0; legacy_request->gtk_protection = aidl_request.securityConfig.requiresEnhancedFrameProtection ? 1 : 0; return true; } Loading Loading @@ -2172,6 +2183,17 @@ bool convertAidlNanDataPathIndicationResponseToLegacy( memcpy(legacy_request->scid, aidl_request.securityConfig.scid.data(), legacy_request->scid_len); legacy_request->publish_subscribe_id = static_cast<uint8_t>(aidl_request.discoverySessionId); legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForTksa ? 0x1 : 0x0; legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForGtksa ? 0x8 : 0x0; if (aidl_request.securityConfig.supportGtkAndIgtk) { legacy_request->csia_capabilities |= aidl_request.securityConfig.supportBigtksa ? 0x4 : 0x2; } legacy_request->csia_capabilities |= aidl_request.securityConfig.enableNcsBip256 ? 0x16 : 0x0; legacy_request->gtk_protection = aidl_request.securityConfig.requiresEnhancedFrameProtection ? 1 : 0; return true; } Loading Loading
wifi/aidl/aidl_api/android.hardware.wifi/current/android/hardware/wifi/NanDataPathSecurityConfig.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,10 @@ parcelable NanDataPathSecurityConfig { byte[32] pmk; byte[] passphrase; byte[16] scid; boolean enable16ReplyCountersForTksa; boolean enable16ReplyCountersForGtksa; boolean supportGtkAndIgtk; boolean supportBigtksa; boolean enableNcsBip256; boolean requiresEnhancedFrameProtection; }
wifi/aidl/android/hardware/wifi/NanDataPathSecurityConfig.aidl +45 −0 Original line number Diff line number Diff line Loading @@ -58,4 +58,49 @@ parcelable NanDataPathSecurityConfig { * setting up the Secure Data Path. */ byte[16] scid; /** * Enables the 16 replay counter for ND-TKSA(NAN Data Pairwise Security Association) and * NM-TKSA(NAN managerment Pairwise Security Association), if set to false will use 4 replay * counter as default * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enable16ReplyCountersForTksa; /** * Enables the 16 replay counter for GTKSA(Group Transient Key security associations), if set to * false will use 4 replay counter as default. * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enable16ReplyCountersForGtksa; /** * GTK(Group Transient Key) used to protect group addressed data frames, * IGTK(Integrity Group Transient Key) used to protect multicast management frames, set to true * if supported. * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean supportGtkAndIgtk; /** * BIGTK(Beacon Integrity Group Transient Key) used to protect Beacon frames, set to true if * supported. * Ref: Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean supportBigtksa; /** * Enables NCS-BIP-256 for IGTKSA(Integrity Group Transient Key security associations) * and BIGTK(Beacon Integrity Group Transient Key security associations), if set to false will * use NCS-BIP-128 as default * Wi-Fi Aware spec 4.0: 9.5.21.2 Cipher Suite Information attribute */ boolean enableNcsBip256; /** * Require enhanced frame protection if supported, which includes multicast management frame * protection, group addressed data protection and beacon frame protection. * Wi-Fi Aware spec 4.0: 7.3 frame protection */ boolean requiresEnhancedFrameProtection; }
wifi/aidl/default/aidl_struct_util.cpp +22 −0 Original line number Diff line number Diff line Loading @@ -2090,6 +2090,17 @@ bool convertAidlNanDataPathInitiatorRequestToLegacy( memcpy(legacy_request->scid, aidl_request.securityConfig.scid.data(), legacy_request->scid_len); legacy_request->publish_subscribe_id = static_cast<uint8_t>(aidl_request.discoverySessionId); legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForTksa ? 0x1 : 0x0; legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForGtksa ? 0x8 : 0x0; if (aidl_request.securityConfig.supportGtkAndIgtk) { legacy_request->csia_capabilities |= aidl_request.securityConfig.supportBigtksa ? 0x4 : 0x2; } legacy_request->csia_capabilities |= aidl_request.securityConfig.enableNcsBip256 ? 0x16 : 0x0; legacy_request->gtk_protection = aidl_request.securityConfig.requiresEnhancedFrameProtection ? 1 : 0; return true; } Loading Loading @@ -2172,6 +2183,17 @@ bool convertAidlNanDataPathIndicationResponseToLegacy( memcpy(legacy_request->scid, aidl_request.securityConfig.scid.data(), legacy_request->scid_len); legacy_request->publish_subscribe_id = static_cast<uint8_t>(aidl_request.discoverySessionId); legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForTksa ? 0x1 : 0x0; legacy_request->csia_capabilities |= aidl_request.securityConfig.enable16ReplyCountersForGtksa ? 0x8 : 0x0; if (aidl_request.securityConfig.supportGtkAndIgtk) { legacy_request->csia_capabilities |= aidl_request.securityConfig.supportBigtksa ? 0x4 : 0x2; } legacy_request->csia_capabilities |= aidl_request.securityConfig.enableNcsBip256 ? 0x16 : 0x0; legacy_request->gtk_protection = aidl_request.securityConfig.requiresEnhancedFrameProtection ? 1 : 0; return true; } Loading