mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
Add RSA hash algorithm detection in passport parsing
This commit is contained in:
committed by
GitHub
parent
da83215748
commit
d2ec05cec9
@@ -40,6 +40,14 @@ export function brutforceSignatureAlgorithm(passportData: PassportData) {
|
||||
};
|
||||
}
|
||||
}
|
||||
const hashAlgorithm = brutforceHashAlgorithm(passportData, 'rsa');
|
||||
if (hashAlgorithm) {
|
||||
return {
|
||||
signatureAlgorithm: 'rsa',
|
||||
hashAlgorithm: hashAlgorithm,
|
||||
saltLength: 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function brutforceHashAlgorithm(
|
||||
|
||||
Reference in New Issue
Block a user