webcrypto-local
webcrypto-local copied to clipboard
Test application shows static list of key sizes and algorithms, it should be dynamic
Right now we show a static list of key sizes and algorithms, for example we always show RSA and ECC even though not all providers will support it.
We also always show RSA 4096 bit when not all providers will support it.
When these options are chosen the user will get an error:

It would be better for the UI to use metadata about the provider to decide what algorithms and key lengths to show.
This is a dependency: https://github.com/PeculiarVentures/webcrypto-local/issues/153
node-webcrypto-p11 has getProviderInfo
it returns list of supported algorithms. There is no info about key size.
Info about OSX system provider

It looks UI doesn't use info about provider for algorithm selector
I see. OK.
Well, we should use the returned information about algorithms and make sure we have an error page for the unsupported length.