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

Modify RS256Algorithm to be xplat friendly #118

Closed
wants to merge 2 commits into from

Conversation

helloitszak
Copy link

Use the base class RSA for RS256Algorithm, which allows use on platforms like macOS and Linux, which won't have RSACryptoServiceProvider.

This is a very much "works on my machine" build and probably shouldn't be merged as-is. I notably have not tested this on net35.

Particularly, further research is needed as to why the CspParameters and creating a new RSACryptoServiceProvider was needed in the old code. I don't know anything about Windows crypto, so I'm not much help here.

Fixes #117

Use the base class `RSA` for `RS256Algorithm`, which allows use
on platforms like macOS and Linux, which won't have
`RSACryptoServiceProvider`.
@nbarbettini
Copy link
Contributor

Code looks good to me at first glance. I also don't know why that other code was there. I haven't done much RSA256 crypto myself.

@abatishchev
Copy link
Member

We need few basic (smoke) tests to proceed.

Meanwhile is it possible somehow test both platforms implementation? Or AppVeyor will compile and run one or another but not both?

@abatishchev
Copy link
Member

btw by some reason one of AppVeyor checks has stuck and hasn't changed since then

@nbarbettini
Copy link
Contributor

I believe it's possible to build on multiple platforms using AppVeyor's build matrix feature, although I haven't tried it.

@abatishchev
Copy link
Member

It seems here's what we need: Build configuration#Build matrix

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

Successfully merging this pull request may close these issues.

3 participants