Additional assurance against accidental inclusion of default_keys.h

This commit is contained in:
OpenSauce04 2026-04-12 16:53:42 +01:00
parent a6caff24d8
commit 10bdc2862c
2 changed files with 10 additions and 1 deletions

View file

@ -464,7 +464,6 @@ add_library(citra_core STATIC
hw/aes/key.h
hw/ecc.cpp
hw/ecc.h
hw/default_keys.h
hw/rsa/rsa.cpp
hw/rsa/rsa.h
hw/unique_data.cpp
@ -502,6 +501,10 @@ add_library(citra_core STATIC
tracer/recorder.h
)
if (ENABLE_BUILTIN_KEYBLOB)
target_sources(citra_core PRIVATE hw/default_keys.h)
endif()
create_target_directory_groups(citra_core)
target_link_libraries(citra_core PUBLIC citra_common PRIVATE audio_core network video_core)

View file

@ -2,6 +2,12 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#ifndef ENABLE_BUILTIN_KEYBLOB
#error Attempting to include default_keys.h, but ENABLE_BUILTIN_KEYBLOB is disabled.
#endif
unsigned char default_keys_enc[] = {
0x4E, 0x81, 0xE9, 0x54, 0xCC, 0xDE, 0xFD, 0x56, 0x7D, 0xD2, 0x72, 0xE6, 0xD9, 0xCD, 0x8E, 0x11,
0xE1, 0x7F, 0x74, 0xF4, 0xFC, 0x54, 0xA6, 0xA4, 0x27, 0xC2, 0xD7, 0x50, 0xEA, 0xE7, 0xBE, 0xC9,