(mode, key, data, algorithm)
| 79 | } |
| 80 | |
| 81 | function rsaOaepCipher(mode, key, data, algorithm) { |
| 82 | validateRsaOaepAlgorithm(algorithm); |
| 83 | |
| 84 | const type = mode === kWebCryptoCipherEncrypt ? 'public' : 'private'; |
| 85 | if (getCryptoKeyType(key) !== type) { |
| 86 | throw lazyDOMException( |
| 87 | 'The requested operation is not valid for the provided key', |
| 88 | 'InvalidAccessError'); |
| 89 | } |
| 90 | |
| 91 | return jobPromise(() => new RSACipherJob( |
| 92 | kCryptoJobWebCrypto, |
| 93 | mode, |
| 94 | getCryptoKeyHandle(key), |
| 95 | data, |
| 96 | kKeyVariantRSA_OAEP, |
| 97 | normalizeHashName(getCryptoKeyAlgorithm(key).hash.name), |
| 98 | algorithm.label)); |
| 99 | } |
| 100 | |
| 101 | function rsaKeyGenerate( |
| 102 | algorithm, |
nothing calls this directly
no test coverage detected
searching dependent graphs…