AesAuthModeBuilder class sealed

Sealed base for authenticated-mode builders (AesMode.gcm, AesMode.ccm).

The concrete subtypes AesGcmModeBuilder and AesCcmModeBuilder differ in what they expose:

  • GCM has a fixed tag size of 128 bits (the only value PointyCastle supports), so AesGcmModeBuilder does not expose a tagSize setter.
  • CCM supports tags of 32/48/64/80/96/112/128 bits per NIST SP 800-38C, so AesCcmModeBuilder exposes tagSize with validation against that set.

Both subtypes expose aad and ivSize. Use this sealed base only as a type annotation when a function should accept either GCM or CCM.

Inheritance
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aad(Uint8List aad) AesAuthModeBuilder
Sets the Additional Authenticated Data (AAD). Subtypes override this with a covariant return type so the chain stays statically typed.
cipher(FortisAesKey key) AesAuthCipher
Builds an AesAuthCipher for this configuration.
override
ivSize(int size) AesAuthModeBuilder
Sets the IV size in bytes. Subtypes apply mode-specific validation and return their own type via covariance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited