Skip to content

Class swarmauri_core.crypto.types.AEADCiphertext

swarmauri_core.crypto.types.AEADCiphertext dataclass

AEADCiphertext(kid, version, alg, nonce, ct, tag, aad=None)

AEAD result with associated key identity. - alg: e.g., "AES-GCM" - nonce: MUST be correct size for 'alg' (e.g., 12 bytes for AES-GCM) - tag: For some libs (cryptography.AESGCM) tag is appended to ct; we still carry a 'tag' field to standardize shape. Set to b"" when not distinct.

kid instance-attribute

kid

version instance-attribute

version

alg instance-attribute

alg

nonce instance-attribute

nonce

ct instance-attribute

ct

tag instance-attribute

tag

aad class-attribute instance-attribute

aad = None