({selector, keyringId, options = {}})
| 184 | } |
| 185 | |
| 186 | function keyGenContainer({selector, keyringId, options = {}}) { |
| 187 | options.keySize = options.keySize || 2048; |
| 188 | const container = new KeyGenContainer(selector, keyringId, options); |
| 189 | containers.set(container.id, container); |
| 190 | return container.create(); |
| 191 | } |
| 192 | |
| 193 | function keyBackupContainer({selector, keyringId, options = {}}) { |
| 194 | const container = new KeyBackupContainer(selector, keyringId, options); |