1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

pss: extra validity check

This commit is contained in:
Michael Scire 2020-02-24 04:32:37 -08:00
parent c3656aae30
commit 8ccac1d18a

View file

@ -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];