webcrypto-local icon indicating copy to clipboard operation
webcrypto-local copied to clipboard

Test application shows static list of key sizes and algorithms, it should be dynamic

Open rmhrisk opened this issue 8 years ago • 3 comments

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: image

It would be better for the UI to use metadata about the provider to decide what algorithms and key lengths to show.

rmhrisk avatar Jul 30 '17 06:07 rmhrisk

This is a dependency: https://github.com/PeculiarVentures/webcrypto-local/issues/153

rmhrisk avatar Jul 30 '17 07:07 rmhrisk

node-webcrypto-p11 has getProviderInfo

it returns list of supported algorithms. There is no info about key size.

Info about OSX system provider image

It looks UI doesn't use info about provider for algorithm selector

microshine avatar Jul 31 '17 08:07 microshine

I see. OK.

Well, we should use the returned information about algorithms and make sure we have an error page for the unsupported length.

rmhrisk avatar Jul 31 '17 16:07 rmhrisk