GeneralCryptoHelper class abstract interface

General cryptographic helper interface for key validation and algorithm handling.

Combines common crypto utilities (key matching, algorithm detection) and provides static methods for verifying key pairs (symmetric/asymmetric).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getKeyAlgorithm(Map key, [String? defaultValue]) String?
Extracts the algorithm name from a key's metadata map.
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 Properties

PROMISE Uint8List
sample data for checking keys
final

Static Methods

matchAsymmetricKeys(SignKey sKey, VerifyKey pKey) bool
Verifies that an asymmetric key pair (sign/verify) are a matching pair.
matchSymmetricKeys(EncryptKey encKey, DecryptKey decKey) bool
Verifies that symmetric keys (encrypt/decrypt) are a matching pair.