diff options
author | Subv <subv2112@gmail.com> | 2017-06-14 20:18:58 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-06-26 19:24:11 +0200 |
commit | 87168bfe8b5b0b96f7e39f33db1df52da046c39a (patch) | |
tree | c5990660270ad36722e184696b106ccda799b974 /src/core/hle/service/nwm/uds_data.h | |
parent | UDS: Added functions to encrypt and decrypt the data frames. (diff) | |
download | yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar.gz yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar.bz2 yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar.lz yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar.xz yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.tar.zst yuzu-87168bfe8b5b0b96f7e39f33db1df52da046c39a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nwm/uds_data.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/core/hle/service/nwm/uds_data.h b/src/core/hle/service/nwm/uds_data.h index 960f13cee..a23520a41 100644 --- a/src/core/hle/service/nwm/uds_data.h +++ b/src/core/hle/service/nwm/uds_data.h @@ -6,28 +6,18 @@ #include <array> #include <vector> - #include "common/common_types.h" #include "common/swap.h" #include "core/hle/service/service.h" -#include <cryptopp/aes.h> - namespace Service { namespace NWM { -enum class SAP : u8 { - SNAPExtensionUsed = 0xAA -}; +enum class SAP : u8 { SNAPExtensionUsed = 0xAA }; -enum class PDUControl : u8 { - UnnumberedInformation = 3 -}; +enum class PDUControl : u8 { UnnumberedInformation = 3 }; -enum class EtherType : u16 { - SecureData = 0x876D, - EAPoL = 0x888E -}; +enum class EtherType : u16 { SecureData = 0x876D, EAPoL = 0x888E }; /* * 802.2 header, UDS packets always use SNAP for these headers, @@ -81,7 +71,8 @@ static_assert(sizeof(DataFrameCryptoCTR) == 16, "DataFrameCryptoCTR has the wron * Generates an unencrypted 802.11 data payload. * @returns The generated frame payload. */ -std::vector<u8> GenerateDataPayload(const std::vector<u8>& data, u8 channel, u16 dest_node, u16 src_node, u16 sequence_number); +std::vector<u8> GenerateDataPayload(const std::vector<u8>& data, u8 channel, u16 dest_node, + u16 src_node, u16 sequence_number); } // namespace NWM } // namespace Service |