Skip to content

WithGcmSizes Method ​

Definition ​

  • Namespace: JASE.Crypto
  • Assembly: JASE.Crypto.dll

AesGcmOptions WithGcmSizes(int nonceByteSize, int tagByteSize) ​

csharp
AesGcmOptions WithGcmSizes(int nonceByteSize, int tagByteSize)

Overrides the AES-GCM nonce and tag sizes for this single operation, without mutating the process-wide Configuration defaults. Returns the same instance for chaining.

Parameters ​

NameDescription
nonceByteSizeNonce length in bytes (must be within the AES-GCM legal range).
tagByteSizeAuthentication tag length in bytes (must be within the AES-GCM legal range).

Returns ​

This AesGcmOptions instance.