(format)
| 272 | } |
| 273 | |
| 274 | function getFormat(format) { |
| 275 | if (format) { |
| 276 | if (format === 'compressed') |
| 277 | return POINT_CONVERSION_COMPRESSED; |
| 278 | if (format === 'hybrid') |
| 279 | return POINT_CONVERSION_HYBRID; |
| 280 | if (format !== 'uncompressed') |
| 281 | throw new ERR_CRYPTO_ECDH_INVALID_FORMAT(format); |
| 282 | } |
| 283 | return POINT_CONVERSION_UNCOMPRESSED; |
| 284 | } |
| 285 | |
| 286 | const dhEnabledKeyTypes = new SafeSet(['dh', 'ec', 'x448', 'x25519']); |
| 287 |
no outgoing calls
no test coverage detected
searching dependent graphs…