Appearance
AesGcmOptions Class
Definition
Class defining options availble for AesGcm encryption operations
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Properties
| Name | Description |
|---|---|
AssociatedData | Optional associated authenticated data (AAD) |
Encoding | Get the Text encoding to be used |
Format | Envelope format of the encrypted byte[]. Raw-key factories fall back to |
Key | Required key (can be derived from passphrase+salt or set directly) |
NonceByteSize | AES-GCM nonce length (in bytes) used for this operation. Snapshotted from |
TagByteSize | AES-GCM authentication tag length (in bytes) used for this operation. Snapshotted from |
Methods
Remarks
Secret lifetime: this instance retains sensitive material—the derived/raw Key and, for passphrase factories, the Passphrase—in ordinary managed memory for the lifetime of the object. The library does not pin, encrypt, or zero this memory, and the garbage collector may relocate or copy it. Treat an AesGcmOptions as short-lived: build it, use it for the operation, and drop the reference. Callers with stricter requirements should manage their own secret protection (and prefer the raw-key factory with key material they control and can clear).
Thread-safety: instances are not thread-safe for concurrent mutation. Treat an instance as effectively immutable once configured; do not call WithGcmSizes while the same instance is in use on another thread.