()
| 166 | }); |
| 167 | |
| 168 | async function generatePrivateKey() { |
| 169 | return CryptoProxy.generateKey({ |
| 170 | userIDs: [{ name: 'DriveCryptoCacheAdapter test' }], |
| 171 | type: 'ecc', |
| 172 | curve: 'ed25519Legacy', |
| 173 | }); |
| 174 | } |
| 175 | |
| 176 | async function generateSessionKey(recipientPrivateKey: Awaited<ReturnType<typeof generatePrivateKey>>) { |
| 177 | const publicKey = await CryptoProxy.importPublicKey({ |
no test coverage detected