web-eid / web-eid-webextension

The Web eID browser extension for Chrome, Edge, Firefox and other WebExtensions-compatible browsers
https://web-eid.eu
MIT License
15 stars 18 forks source link

fix: Backwards compatibility issue when hash length doesn't match signing hash algo #26

Closed taneltm closed 2 years ago

taneltm commented 2 years ago

Resolves WE2-620

When the provided hash is 28, 32, 48 or 64 bytes long and the provided hash algorithm doesn't match the length, the extension will automatically change the hash algorithm to SHA-224, SHA-256, SHA-384 or SHA-512 to match the hash length.
In addition, warnings are logged to the website's developer console.