Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBKDF2 on Internet Explorer resorts to native subtle and fails #81

Open
wh1t3cAt1k opened this issue Jan 12, 2021 · 2 comments
Open

PBKDF2 on Internet Explorer resorts to native subtle and fails #81

wh1t3cAt1k opened this issue Jan 12, 2021 · 2 comments
Assignees

Comments

@wh1t3cAt1k
Copy link

wh1t3cAt1k commented Jan 12, 2021

The reason is that (to the best of my knowledge) PBKDF2 is not supported on IE11.

The failure is NotSupportedError returned by native IE11 subtle upon importKey() call with PBKDF2. Here are the args:

image

I know this library does not officially support IE11, however I have nowhere else to go 😂 until Microsoft deprecates its IE-based webview for Office.js add-ins.

As far as I can see, the liner already supports PBKDF2 fallback, can any tweaks be made at the wrapNative level to enable this scenario?..

@rmhrisk
Copy link
Contributor

rmhrisk commented Jan 12, 2021

Should be an easy fix if so. PR welcome. We will try to get to it in the meantime.

@wh1t3cAt1k
Copy link
Author

wh1t3cAt1k commented Jan 12, 2021

(just to clarify, deriveKey() is not supported either: that method (also with PBKDF2) is also used by @webcrypto/storage library that I'm using.

However I am not certain whether that error is because PBKDF2 algorithm is not implemented, or deriveKey() in general is hard-cut-off on IE11 - at any rate, probably makes sense to specifically test the case with deriveKey as well...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants