Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

importKey RSA-OAEP with SHA-1 not working on safari 11 #22

Closed
OriAmir opened this issue Oct 4, 2017 · 5 comments
Closed

importKey RSA-OAEP with SHA-1 not working on safari 11 #22

OriAmir opened this issue Oct 4, 2017 · 5 comments

Comments

@OriAmir
Copy link

OriAmir commented Oct 4, 2017

Hey , I try to use 'importkey' on safari 11 and also on outlook for mac and both I get error.
window.crypto.subtle.importKey( "jwk", { "kty": "RSA", "e": difensoPublicKeyE, "n": difensoPublicKeyN, "alg": "RSA-OAEP", "ext": true }, { / name: "RSA-OAEP", hash: { name: "SHA-1" }, }, true, ["encrypt"] ).then(function (publicKey) {

Then I get this error:
OpeartionTypeError: Member JsonWebKey.kty is required and must be an instance of DOMString

Not matter what I try it's same error... maybe someone can help please?

Thx

@vibornoff
Copy link
Owner

Does it still actual?
Could you please make a complete copy'n'paste-capable code example?

@Ruffio
Copy link
Contributor

Ruffio commented Apr 18, 2018

@OriAmir can you provide an example of your issue? Maybe use JSBin or similar?

@Ruffio
Copy link
Contributor

Ruffio commented Jul 6, 2018

@OriAmir an example?

@OriAmir
Copy link
Author

OriAmir commented Jul 8, 2018

@Ruffio I don't work on this project anymore so I don't know if something change .. you try this?

@Ruffio
Copy link
Contributor

Ruffio commented Jul 9, 2018

This was fixed with: ae3e9fa#diff-f9277148bdb6cb3b8f35c2f847e04e6e

Is was the same issue and fixed that was used here: ipfs/js-ipfs#995

This issue can be closed :-)

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

No branches or pull requests

3 participants