(isPublic, keyData)
| 206 | } |
| 207 | |
| 208 | function importJwkKey(isPublic, keyData) { |
| 209 | const handle = new KeyObjectHandle(); |
| 210 | const keyType = isPublic ? kKeyTypePublic : kKeyTypePrivate; |
| 211 | try { |
| 212 | handle.init(keyType, keyData, kKeyFormatJWK, null, null, null); |
| 213 | } catch (err) { |
| 214 | throw lazyDOMException( |
| 215 | 'Invalid keyData', { name: 'DataError', cause: err }); |
| 216 | } |
| 217 | return handle; |
| 218 | } |
| 219 | |
| 220 | function importRawKey(isPublic, keyData, format, name, namedCurve) { |
| 221 | const handle = new KeyObjectHandle(); |
no test coverage detected
searching dependent graphs…