SignatureMixin mixin

Superclass constraints
Mixin applications

Properties

bindings → OpenSslFfi
Acesso aos bindings brutos gerados.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
loader → OpenSslBindings
Acesso ao loader/configuração (opcional, se precisarmos de caminhos).
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

keyRequiresOneShotSignature(EvpPkey key) → bool
Whether key signs the message directly and therefore rejects an external digest (Ed25519, Ed448 and the ML-DSA family).
lookup<T extends Function>(String name) → Pointer<NativeFunction<T>>
Helper para pegar endereços de funções (para NativeFinalizer).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(EvpPkey key, Uint8List data, {String algorithm = 'SHA256', bool allowOneShotFallback = true}) → Uint8List
Signs data using the private key.
signMlDsa(EvpPkey key, Uint8List data, {MlDsaSignatureOptions? options}) → Uint8List
High-level ML-DSA one-shot sign helper.
signOneShot(EvpPkey key, Uint8List data, {String? algorithm, MlDsaSignatureOptions? mlDsaOptions}) → Uint8List
Signs data in one-shot mode (no Update calls).
toString() → String
A string representation of this object.
inherited
verify(EvpPkey key, Uint8List data, Uint8List signature, {String algorithm = 'SHA256', bool allowOneShotFallback = true}) → bool
Verifies signature for data using key.
verifyMlDsa(EvpPkey key, Uint8List data, Uint8List signature, {MlDsaSignatureOptions? options}) → bool
High-level ML-DSA one-shot verify helper.
verifyOneShot(EvpPkey key, Uint8List data, Uint8List signature, {String? algorithm, MlDsaSignatureOptions? mlDsaOptions}) → bool
Verifies signature for data in one-shot mode (no Update calls).

Operators

operator ==(Object other) → bool
The equality operator.
inherited