NativeFf1Api class

Ff1Api backed by a native (FFI/platform) implementation.

Implemented types

Constructors

NativeFf1Api(BuFf1Api _api)

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

decrypt({required List<int> key, required int radix, required List<int> ct, List<int> tweak = const []}) → BuBytes
Decrypts digit bytes ct (each < radix) with 16, 24 or 32-byte key, radix 2..65536 (Dart backend 2..256) and tweak. Returns same-length plaintext. Throws on bad key/radix or empty ct.
override
decryptBinary({required List<int> key, required List<int> ct, List<int> tweak = const []}) → BuBytes
Decrypts raw bytes ct (binary radix-2 FF1) with 16, 24 or 32-byte key and tweak. Returns same-length plaintext. Throws on bad key or empty ct.
override
encrypt({required List<int> key, required int radix, required List<int> pt, List<int> tweak = const []}) → BuBytes
Encrypts digit bytes pt (each < radix) with 16, 24 or 32-byte key, radix 2..65536 (Dart backend 2..256) and tweak. Returns same-length ciphertext. Throws on bad key/radix or empty pt.
override
encryptBinary({required List<int> key, required List<int> pt, List<int> tweak = const []}) → BuBytes
Encrypts raw bytes pt (binary radix-2 FF1) with 16, 24 or 32-byte key and tweak. Returns same-length ciphertext. Throws on bad key or empty pt.
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