NativeMLDSASigningApi class

Native (FFI) implementation of ML-DSA key generation/signing/verification.

Implemented types

Constructors

NativeMLDSASigningApi(BuMlDsaSigningApi api)
const

Properties

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

Methods

keygen({required int level, List<int>? seed}) → (BuBytes, BuBytes)
Generate a key pair.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKeyFromSecret({int? level, required List<int> sk}) → BuBytes
Derive public key from secret key.
override
sign({int? level, required List<int> sk, required List<int> message, List<int>? context, List<int>? rnd}) → BuBytes
Sign message.
override
toString() → String
A string representation of this object.
inherited
verify({int? level, required List<int> pk, required List<int> message, required List<int> signature, List<int>? context}) → bool
Verify signature.
override

Operators

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