TransformMode Enum
Definition
- Namespace
- Bodu.Security.Cryptography
- Assembly
- Bodu.Security.Cryptography.dll
- Package
- Bodu.Security.Cryptography 1.2.0
- Source
- TransformMode.cs
Defines the direction of a cryptographic transformation.
public enum TransformMode
- Extension Methods
Fields
Encrypt = 0Indicates that the transform should encrypt plaintext into ciphertext.
Decrypt = 1Indicates that the transform should decrypt ciphertext into plaintext.
Remarks
Used by helper APIs that take a single direction argument rather than separate Encrypt / Decrypt
overloads. The lower-level
Transform(ReadOnlySpan<byte>, Span<byte>, bool) uses a
bool instead because the transform contract predates this enumeration; either representation
expresses the same choice.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |