Questions about the return value of the MGF1 method in the ticket file
There is no return value in the MGF1 method in the ticket file. It is a problem to use the return value for numeric judgment in actual use.
const seedmask = Array(SHA_DIGEST_LENGTH);
if (MGF1(seedmask, db) < 0) {
return null;
}
There is no return value when the MGF1 method is defined.
Because I don’t know much about algorithms, is there a problem here?