GcmPacketWriter.this

this(const(ubyte)[] key, in ubyte[12] iv, CryptoRandom rng)

Constructs a writer from derived key material.

Parameters

keyEncryption key (16 bytes for aes128-gcm, 32 for aes256-gcm).
iv12-byte initial IV: 4 fixed bytes plus the initial invocation counter.
rngRandom source for padding bytes.

Throws

SshGcmException on unsupported key sizes.