(key)
| 550 | } |
| 551 | |
| 552 | function exportKeyRawSeed(key) { |
| 553 | switch (getCryptoKeyAlgorithm(key).name) { |
| 554 | case 'ML-DSA-44': |
| 555 | // Fall through |
| 556 | case 'ML-DSA-65': |
| 557 | // Fall through |
| 558 | case 'ML-DSA-87': |
| 559 | return require('internal/crypto/ml_dsa') |
| 560 | .mlDsaExportKey(key, kWebCryptoKeyFormatRaw); |
| 561 | case 'ML-KEM-512': |
| 562 | // Fall through |
| 563 | case 'ML-KEM-768': |
| 564 | // Fall through |
| 565 | case 'ML-KEM-1024': |
| 566 | return require('internal/crypto/ml_kem') |
| 567 | .mlKemExportKey(key, kWebCryptoKeyFormatRaw); |
| 568 | default: |
| 569 | return undefined; |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | function exportKeyRawSecret(key, format) { |
| 574 | switch (getCryptoKeyAlgorithm(key).name) { |
no test coverage detected
searching dependent graphs…