MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / generateKey

Method generateKey

src/modules/KeyStoreLocal.js:84–87  ·  view source on GitHub ↗
({keyAlgo, userIds, passphrase, numBits, keyExpirationTime})

Source from the content-addressed store, hash-verified

82 }
83
84 async generateKey({keyAlgo, userIds, passphrase, numBits, keyExpirationTime}) {
85 const curve = keyAlgo === 'ecc' ? 'curve25519' : undefined;
86 return generateKey({userIDs: userIds, passphrase, type: keyAlgo, rsaBits: numBits, curve, keyExpirationTime, format: 'object'});
87 }
88}

Callers

nothing calls this directly

Calls 1

generateKeyFunction · 0.50

Tested by

no test coverage detected