react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

Add support for crypto.subtle (or crypto.webcrypto.subtle)

Open shamilovtim opened this issue 1 year ago • 6 comments

Currently crypto.subtle support is known to be missing. I propose to add crypto.subtle support. Let me know what the status on this is and whether it's open for PRs.

shamilovtim avatar Apr 13 '23 16:04 shamilovtim

I just implemented a small part of webcrypto. Client paid for a couple days of work for the function they needed. If you need more webcrypto functions and are willing to sponsor I can gladly implement them.

ospfranco avatar Dec 02 '23 06:12 ospfranco

How much costs crypto.subtle implementation? @konio_io could be a sponsor

adrianofoschi avatar Dec 28 '23 11:12 adrianofoschi

There is already someone working on patching the rest of the implementations, margelo might also be interested... if none of them covers your use cases, you can send me an email

ospfranco avatar Dec 28 '23 11:12 ospfranco

See #211, #224 and let me know which crypto.subtle methods you need. Personally, I need everything in the description of the first PR and will continue to work on those. There's an implementation coverage document in the second PR, showing that we have a long way to go.

boorad avatar Jan 29 '24 16:01 boorad

@boorad for turnkey sdk webauthn support, those are the required methods:

  • digest SHA-256
  • sign ECDSA SHA-256
  • importKey ECDSA P-256

cruzdanilo avatar Jan 29 '24 16:01 cruzdanilo

I'm currently working on subtle.digest() all four hashes - #225

boorad avatar Jan 29 '24 17:01 boorad

@boorad Thank you for your amazing work getting subtle support in. Any chance you can also add sign and generateKey support under subtle? Or any tips on how we can get this in there? We would be happy to sponsor the work as well. We specifically need ECDSA P-256 support. Thank you.

taylanpince avatar Apr 26 '24 22:04 taylanpince

I am recently set up for Github Sponsorships. Feel free to offer a sponsorship for the methods you want me to implement by opening a new ticket for each.

boorad avatar Apr 26 '24 23:04 boorad