| 18 | |
| 19 | // ==================== AES-GCM ==================== |
| 20 | class AESGCMCipher { |
| 21 | constructor(key, nonce) { |
| 22 | if (key.length !== 16) throw new Error('key must be 16 bytes'); |
| 23 | if (nonce.length !== 8) throw new Error('nonce must be 8 bytes'); |
nothing calls this directly
no outgoing calls
no test coverage detected