mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
Fixed TitleKey and BodyKey implementation.
This commit is contained in:
parent
c7d78d0f1e
commit
9cb9c66756
1 changed files with 2 additions and 2 deletions
|
@ -417,7 +417,7 @@ void UserSettings::populateKeyset(sCmdArgs& args)
|
||||||
// save keydata from input args
|
// save keydata from input args
|
||||||
if (args.nca_bodykey.isSet)
|
if (args.nca_bodykey.isSet)
|
||||||
{
|
{
|
||||||
if (args.nca_bodykey.var.length() == (sizeof(crypto::aes::sAes128Key)*2))
|
if (args.nca_bodykey.var.length() != (sizeof(crypto::aes::sAes128Key)*2))
|
||||||
{
|
{
|
||||||
decodeHexStringToBytes("--bodykey", args.nca_bodykey.var, mKeyset.nca.manual_body_key_aesctr.key, sizeof(crypto::aes::sAes128Key));
|
decodeHexStringToBytes("--bodykey", args.nca_bodykey.var, mKeyset.nca.manual_body_key_aesctr.key, sizeof(crypto::aes::sAes128Key));
|
||||||
}
|
}
|
||||||
|
@ -429,7 +429,7 @@ void UserSettings::populateKeyset(sCmdArgs& args)
|
||||||
|
|
||||||
if (args.nca_titlekey.isSet)
|
if (args.nca_titlekey.isSet)
|
||||||
{
|
{
|
||||||
if (args.nca_bodykey.var.length() == (sizeof(crypto::aes::sAes128Key)*2))
|
if (args.nca_bodykey.var.length() != (sizeof(crypto::aes::sAes128Key)*2))
|
||||||
{
|
{
|
||||||
decodeHexStringToBytes("--titlekey", args.nca_titlekey.var, mKeyset.nca.manual_title_key_aesctr.key, sizeof(crypto::aes::sAes128Key));
|
decodeHexStringToBytes("--titlekey", args.nca_titlekey.var, mKeyset.nca.manual_title_key_aesctr.key, sizeof(crypto::aes::sAes128Key));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue