eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 172 forks source link

Support signing and verification using ECDSA #2280

Closed cpetrov closed 6 months ago

cpetrov commented 7 months ago

Introduce the methods crypto.subtle.sign() and crypto.subtle.verify() to create and verify ECDSA signatures.

Currently, only the combination of the algorithm ECDSAinDERFormat and SHA-256 hash is supported.

The algorithm ECDSAinDERFormat is similar to the ECDSA algorithm used in SubtleCrypto, with the distinction that signature is encoded in the DER format, diverging from the IEEE-P1363 format used in SubtleCrypto.