diff options
author | Subv <subv2112@gmail.com> | 2017-06-14 19:47:52 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-06-26 19:24:09 +0200 |
commit | 9befb8c887b78128a2e8ef8febc82a4933196602 (patch) | |
tree | d4e208d9d250af677166ebdedc29e4595a22d8a8 /src/core/hle/service/nwm/uds_data.h | |
parent | UDS: Clarify comment about the first 4 bytes of the SecureData header. (diff) | |
download | yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar.gz yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar.bz2 yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar.lz yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar.xz yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.tar.zst yuzu-9befb8c887b78128a2e8ef8febc82a4933196602.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nwm/uds_data.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/nwm/uds_data.h b/src/core/hle/service/nwm/uds_data.h index 8480ef94b..960f13cee 100644 --- a/src/core/hle/service/nwm/uds_data.h +++ b/src/core/hle/service/nwm/uds_data.h @@ -4,10 +4,15 @@ #pragma once +#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 { @@ -73,10 +78,10 @@ struct DataFrameCryptoCTR { static_assert(sizeof(DataFrameCryptoCTR) == 16, "DataFrameCryptoCTR has the wrong size"); /** - * Generates an encrypted 802.11 data frame starting at the CCMP IV. - * @returns The generated frame. + * Generates an unencrypted 802.11 data payload. + * @returns The generated frame payload. */ -std::vector<u8> GenerateDataFrame(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 |