MCPcopy
hub / github.com/mailvelope/mailvelope / getKeyBitLength

Function getKeyBitLength

src/modules/key.js:183–191  ·  view source on GitHub ↗
({bits, curve})

Source from the content-addressed store, hash-verified

181}
182
183function getKeyBitLength({bits, curve}) {
184 if (bits) {
185 return bits;
186 }
187 if (curve === enums.curve.ed25519 || curve === enums.curve.curve25519) {
188 return 256;
189 }
190 return 'UNKNOWN';
191}
192
193export async function mapSubKeys(subkeys = [], toKey, key) {
194 const primaryKey = key.keyPacket;

Callers 2

mapKeysFunction · 0.85
mapSubKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected