From de705925743ea452c38fa0b8e4b3ac1419f26c08 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 28 May 2017 20:53:13 +0800 Subject: [PATCH] [makerom] Unbroke -target t --- makerom/keyset.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/makerom/keyset.c b/makerom/keyset.c index 19887fb..4ff402e 100644 --- a/makerom/keyset.c +++ b/makerom/keyset.c @@ -80,6 +80,15 @@ int LoadKeysFromResources(keys_struct *keys) SetNormalKey(keys,zeros_aesKey); SetSystemFixedKey(keys,zeros_aesKey); + /* RSA Keys */ + // CIA + Rsa2048Key_Set(&keys->rsa.xs, tpki_rsa.priv_exponent, tpki_rsa.modulus); + Rsa2048Key_Set(&keys->rsa.cp, tpki_rsa.priv_exponent, tpki_rsa.modulus); + // CCI/CFA + Rsa2048Key_Set(&keys->rsa.cciCfa, tpki_rsa.priv_exponent, tpki_rsa.modulus); + // CXI + Rsa2048Key_Set(&keys->rsa.acex, tpki_rsa.priv_exponent, tpki_rsa.modulus); + /* Certs */ SetCaCert(keys, ca3_tpki_cert); SetTikCert(keys, xsC_tpki_cert);