ValidatedFf1Api class
Ff1Api wrapper that validates arguments before delegating.
- Implemented types
Constructors
- ValidatedFf1Api(Ff1Api inner)
Properties
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-bytekey,radix2..65536 (Dart backend 2..256) andtweak. 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-bytekeyandtweak. 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-bytekey,radix2..65536 (Dart backend 2..256) andtweak. 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-bytekeyandtweak. 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