Replies: 1 comment
-
I found the issue, RSA keys generated on safari using Web Crypto API work fine, but using any other browser the comparison: What do you think should be done to resolve this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I generate RSA-OAEP keys using SubtleCrypto interface of the Web Browser Crypto API:
The generated RSA key pair is in JWK format so I need to use CryptoSwift with this constructor:
RSA.swift
Unfortunately, this line of the constructor throws an error for some of my key pairs:
When I comment out this, the RSA correctly decrypts my data.
Does this inverse function calculate well?
Here is an example of my two RSA keys in JWK format generated by the same JS function, the left one works fine but the other one doesn't 😩
Does anyone know why
guard d == e.inverse(phi)
doesn't work for some keys?Beta Was this translation helpful? Give feedback.
All reactions