({bits, curve})
| 181 | } |
| 182 | |
| 183 | function 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 | |
| 193 | export async function mapSubKeys(subkeys = [], toKey, key) { |
| 194 | const primaryKey = key.keyPacket; |
no outgoing calls
no test coverage detected