mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 17:56:39 +00:00
Merge pull request #110 from jakcron/v1.8.0-release
Update NSTool to v1.8.0
This commit is contained in:
commit
da13b0fdee
4 changed files with 13 additions and 17 deletions
|
@ -1,10 +1,10 @@
|
|||
name: Compile Main Branch
|
||||
name: Compile Main Branches
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ development-tip, stable ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [ development-tip, stable ]
|
||||
release:
|
||||
types: [ created ]
|
||||
|
2
deps/libpietendo
vendored
2
deps/libpietendo
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 49c73ab54c661c752fadcae0b34a4474e54e84d9
|
||||
Subproject commit 86c2c39730fab8bd9d9abe81b9a2113f5f012d97
|
|
@ -488,22 +488,18 @@ void nstool::NcaProcess::displayHeader()
|
|||
if (mContentKey.kak_list.size() > 0 && mCliOutputMode.show_keydata)
|
||||
{
|
||||
fmt::print(" Key Area:\n");
|
||||
fmt::print(" <--------------------------------------------------------------------------------------------------------->\n");
|
||||
fmt::print(" <--------------------------------------------------------------------------->\n");
|
||||
fmt::print(" | IDX | ENCRYPTED KEY | DECRYPTED KEY |\n");
|
||||
fmt::print(" |-----|-------------------------------------------------|-------------------------------------------------|\n");
|
||||
fmt::print(" |-----|----------------------------------|----------------------------------|\n");
|
||||
for (size_t i = 0; i < mContentKey.kak_list.size(); i++)
|
||||
{
|
||||
fmt::print(" | {:3d} | {:s} | ", mContentKey.kak_list[i].index, tc::cli::FormatUtil::formatBytesAsString(mContentKey.kak_list[i].enc.data(), mContentKey.kak_list[i].enc.size(), true, ""));
|
||||
std::string enc_key = tc::cli::FormatUtil::formatBytesAsString(mContentKey.kak_list[i].enc.data(), mContentKey.kak_list[i].enc.size(), true, "");
|
||||
std::string dec_key = mContentKey.kak_list[i].decrypted ? tc::cli::FormatUtil::formatBytesAsString(mContentKey.kak_list[i].dec.data(), mContentKey.kak_list[i].dec.size(), true, "") : "<unable to decrypt>";
|
||||
|
||||
fmt::print(" | {:3d} | {:32s} | {:32s} |\n", mContentKey.kak_list[i].index, enc_key, dec_key);
|
||||
|
||||
if (mContentKey.kak_list[i].decrypted)
|
||||
fmt::print("{:s}", tc::cli::FormatUtil::formatBytesAsString(mContentKey.kak_list[i].dec.data(), mContentKey.kak_list[i].dec.size(), true, ""));
|
||||
else
|
||||
fmt::print("<unable to decrypt> ");
|
||||
|
||||
fmt::print(" |\n");
|
||||
}
|
||||
fmt::print(" <--------------------------------------------------------------------------------------------------------->\n");
|
||||
fmt::print(" <--------------------------------------------------------------------------->\n");
|
||||
}
|
||||
|
||||
if (mCliOutputMode.show_layout)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#define APP_NAME "NSTool"
|
||||
#define BIN_NAME "nstool"
|
||||
#define VER_MAJOR 1
|
||||
#define VER_MINOR 7
|
||||
#define VER_MINOR 8
|
||||
#define VER_PATCH 0
|
||||
#define AUTHORS "jakcron"
|
Loading…
Reference in a new issue