-
Notifications
You must be signed in to change notification settings - Fork 158
Implement Web Cryptography API #124
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add blank lines between members.
5458cab to
118372b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to put this in org.scalajs.dom.crypto instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly agree. org.scalajs.dom.raw is rather cluttered. I'm unsure why pretty much everything is defined in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed. I would encourage people to use org.scalajs.dom.crypto.crypto instead of org.scalajs.dom.window.crypto.
7afe44e to
6e7d65e
Compare
|
Okay, I figured out my bizarre crash- the Window.crypto member in dom (when I previously mixed GlobalCrypto into Window) was conflicting with my crypto package object, and the compiler wasn't handling it particularly well. That should be the lot, hopefully! All operations now happen through crypto.crypto as suggested. |
b7c9ceb to
a1519e5
Compare
|
Whoops, forgot to remove those spurious Algorithm parameter overloads on the Crypto object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ah now you have the worst both worlds: modulusLength of type Long, and not .toDouble. You need either of those. As I told earlier, I would advocate declaring modulusLength as a Double.
Possibly with an overload taking a Long and calling the Double version with .toDouble.
|
That's all. |
|
Thanks again for your patience :) It's been nearly a year since I did any serious commits, so I'm a little rusty. |
|
LGTM |
Implements http://www.w3.org/TR/WebCryptoAPI/