MCPcopy Index your code
hub / github.com/nodejs/node / exportKeyRawSeed

Function exportKeyRawSeed

lib/internal/crypto/webcrypto.js:552–571  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

550}
551
552function 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
573function exportKeyRawSecret(key, format) {
574 switch (getCryptoKeyAlgorithm(key).name) {

Callers 1

exportKeySyncFunction · 0.85

Calls 2

getCryptoKeyAlgorithmFunction · 0.85
requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…