]> git.kaiwu.me - njs.git/commit
WebCrypto: extended support for asymmetric keys.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Jan 2023 01:49:22 +0000 (17:49 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Jan 2023 01:49:22 +0000 (17:49 -0800)
commit50e7c9b291188962cf21348eeb3659dcbc930721
tree60fd62c49db7a5c3ff9fb6e245d6f31002342816
parentbd3ddd458d8ccb72595422b5ea5b133da99f0a80
WebCrypto: extended support for asymmetric keys.

The following functionality for RSA and EC keys were added:
    importKey() supporting 'jwk' format,
                also 'raw' format for EC public keys.
    exportKey() supporting 'pksc8', 'spki', 'jwk' format,
                also 'raw' format for EC public keys.
    generateKey().
16 files changed:
external/njs_openssl.h
external/njs_webcrypto_module.c
test/harness/compareObjects.js [new file with mode: 0644]
test/harness/runTsuite.js
test/harness/webCryptoUtils.js
test/ts/test.ts
test/webcrypto/ec.jwk [new file with mode: 0644]
test/webcrypto/ec.pub.jwk [new file with mode: 0644]
test/webcrypto/export.t.js [new file with mode: 0644]
test/webcrypto/rsa.dec.jwk [new file with mode: 0644]
test/webcrypto/rsa.enc.pub.jwk [new file with mode: 0644]
test/webcrypto/rsa.jwk [new file with mode: 0644]
test/webcrypto/rsa.pub.jwk [new file with mode: 0644]
test/webcrypto/rsa.t.js
test/webcrypto/sign.t.js
ts/njs_webcrypto.d.ts