PqHybridProfile enum

Hash digest engine + security-profile pairing used by PqForgeCombiner.

Fixing the digest fixes the HKDF extract/expand boundary so the combiner stays inside the cryptographic strength of the negotiated KEM. The mapping is intentionally closed (only vetted SHA-2 members) so a caller can never downgrade the KDF to a weak or non-collision-resistant hash.

Inheritance
Available extensions

Values

balanced → const PqHybridProfile

Balanced profile — SHA-256 HKDF. Pairs with ML-KEM-768 (NIST level 3).

const PqHybridProfile('SHA-256', 32)
heavy → const PqHybridProfile

Heavy / high-security profile — SHA-512 HKDF. Pairs with ML-KEM-1024 (NIST level 5).

const PqHybridProfile('SHA-512', 64)

Properties

digestName → String
Human-readable digest identifier, for diagnostics and logging only.
final
digestSizeBytes → int
Output size of the underlying digest in bytes (HKDF HashLen).
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createDigest() → Digest
Builds a fresh PointyCastle pc.Digest for this profile.
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

Constants

values → const List<PqHybridProfile>
A constant List of the values in this enum, in order of their declaration.