@@ -103,7 +103,7 @@ async function rsaOaepCipher(mode, key, data, algorithm) {
|
103 | 103 | 'InvalidAccessError'); |
104 | 104 | } |
105 | 105 | |
106 | | -return jobPromise(() => new RSACipherJob( |
| 106 | +return await jobPromise(() => new RSACipherJob( |
107 | 107 | kCryptoJobAsync, |
108 | 108 | mode, |
109 | 109 | key[kKeyObject][kHandle], |
@@ -337,7 +337,7 @@ async function rsaSignVerify(key, data, { saltLength }, signature) {
|
337 | 337 | if (key[kKeyType] !== type) |
338 | 338 | throw lazyDOMException(`Key must be a ${type} key`, 'InvalidAccessError'); |
339 | 339 | |
340 | | -return jobPromise(() => { |
| 340 | +return await jobPromise(() => { |
341 | 341 | if (key[kAlgorithm].name === 'RSA-PSS') { |
342 | 342 | validateInt32( |
343 | 343 | saltLength, |
|