TspDigestAlgorithm enum
Hash function of a TSP digest, identified on the wire by its CESR code.
Values
- sha256 → const TspDigestAlgorithm
-
SHA2-256, CESR code
I. The default for HPKE-Base and signed-only.const TspDigestAlgorithm('sha2-256') - blake2b256 → const TspDigestAlgorithm
-
Blake2b-256, CESR code
F. Paired with the libsodium sealed box.const TspDigestAlgorithm('blake2b-256')
Properties
- cesrIdentifier → int
-
The one-character CESR identifier of this digest's code.
no setter
- 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
- wireName → String
-
The algorithm name used by the conformance driver protocol.
final
Methods
-
hash(
List< int> data) → Uint8List -
Hashes
datato 32 bytes.override -
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
Static Methods
-
byWireName(
String name) → TspDigestAlgorithm? - Looks up an algorithm by its wireName.
Constants
-
values
→ const List<
TspDigestAlgorithm> - A constant List of the values in this enum, in order of their declaration.