blob: 8e495629b31a8b217e632d745db94a17cd706d9d [file] [log] [blame]
John Wedig2098dab2021-09-14 13:56:28 -07001
2#include "estoraged.hpp"
3
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -08004#include <phosphor-logging/lg2.hpp>
5
John Wedig2098dab2021-09-14 13:56:28 -07006#include <iostream>
7#include <vector>
8
9namespace estoraged
10{
11
12void eStoraged::format(std::vector<uint8_t>)
13{
14 std::cerr << "Formatting encrypted eMMC" << std::endl;
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -080015 std::string msg = "OpenBMC.0.1.DriveFormat";
16 lg2::info("Starting format", "REDFISH_MESSAGE_ID", msg);
John Wedig2098dab2021-09-14 13:56:28 -070017}
18
19void eStoraged::erase(std::vector<uint8_t>, EraseMethod)
20{
21 std::cerr << "Erasing encrypted eMMC" << std::endl;
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -080022 std::string msg = "OpenBMC.0.1.DriveErase";
23 lg2::info("Starting erase", "REDFISH_MESSAGE_ID", msg);
John Wedig2098dab2021-09-14 13:56:28 -070024}
25
26void eStoraged::lock(std::vector<uint8_t>)
27{
28 std::cerr << "Locking encrypted eMMC" << std::endl;
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -080029 std::string msg = "OpenBMC.0.1.DriveLock";
30 lg2::info("Starting lock", "REDFISH_MESSAGE_ID", msg);
John Wedig2098dab2021-09-14 13:56:28 -070031}
32
33void eStoraged::unlock(std::vector<uint8_t>)
34{
35 std::cerr << "Unlocking encrypted eMMC" << std::endl;
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -080036 std::string msg = "OpenBMC.0.1.DriveUnlock";
37 lg2::info("Starting unlock", "REDFISH_MESSAGE_ID", msg);
John Wedig2098dab2021-09-14 13:56:28 -070038}
39
40void eStoraged::changePassword(std::vector<uint8_t>, std::vector<uint8_t>)
41{
42 std::cerr << "Changing password for encrypted eMMC" << std::endl;
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -080043 std::string msg = "OpenBMC.0.1.DrivePasswordChanged";
44 lg2::info("Starting change password", "REDFISH_MESSAGE_ID", msg);
John Wedig2098dab2021-09-14 13:56:28 -070045}
46
47} // namespace estoraged