many small changes

added function to fill memory with random bytes (cleaning some code with
that). Removed public build #ifdefs since 3dsguy apparently uploaded the
entire source with all "private" things.
This commit is contained in:
applestash
2014-06-28 18:38:52 +10:00
parent df5c7f500c
commit 65038633e4
12 changed files with 39 additions and 70 deletions
-4
View File
@@ -2,10 +2,8 @@
// KeyData
#include "tpki.h" // Test PKI
#ifndef PUBLIC_BUILD
#include "ppki.h" // Production PKI
#include "dpki.h" // Development PKI
#endif
// Private Prototypes
int SetRsaKeySet(u8 **PrivDest, u8 *PrivSource, u8 **PubDest, u8 *PubSource);
@@ -88,7 +86,6 @@ int LoadKeysFromResources(keys_struct *keys)
/* RSA Keys */
keys->rsa.isFalseSign = true;
}
#ifndef PUBLIC_BUILD
else if(keys->keyset == pki_DEVELOPMENT){
keys->keysetLoaded = true;
/* AES Keys */
@@ -154,7 +151,6 @@ int LoadKeysFromResources(keys_struct *keys)
SetTikCert(keys,(u8*)xsC_ppki_cert);
SetTmdCert(keys,(u8*)cpB_ppki_cert);
}
#endif
return 0;
}