#pragma once #include #include #include struct KeyDatabase { // Each AES slot has three entries called KeyX, KeyY, and KeyN ("normal key") static constexpr int num_aes_slots = 0x40; using KeyType = std::array; struct { std::optional x; std::optional y; std::optional n; } aes_slots[num_aes_slots]; // KeyYs used to decrypt title keys (required to decrypt CDN contents and update CIAs) std::array, 6> common_y; };