mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-24 03:06:17 +00:00
pss: extra validity check
This commit is contained in:
parent
c3656aae30
commit
8ccac1d18a
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ namespace ams::crypto::impl {
|
|||
const u8 *salt = db + salt_ofs;
|
||||
const size_t salt_size = db_len - salt_ofs;
|
||||
is_valid &= (salt_size != 0);
|
||||
is_valid &= (salt_size != db_len);
|
||||
|
||||
/* Verify hash. */
|
||||
u8 cmp_hash[HashSize];
|
||||
|
|
Loading…
Reference in a new issue