]> git.kaiwu.me - njs.git/commit
WebCrypto: fixed importKey() for AES-* keys.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 30 Dec 2022 04:39:29 +0000 (20:39 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 30 Dec 2022 04:39:29 +0000 (20:39 -0800)
commit71415bc33fd1c515181ce40fec82677bcad2ed0a
tree16d574b73e1fe8174c2132ffecfde92398def771
parentf6c64448f6e0a4fab544e37fa6e0c8dcf7142c6a
WebCrypto: fixed importKey() for AES-* keys.

Previously, key of of any length were accepted, whereas according to the
spec only 128, 192 and 256 bits are allowed.
external/njs_webcrypto_module.c
test/webcrypto/aes.t.js