ByteUtils class
Utility functions for byte operations in Blake2.
Constructors
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
-
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 Methods
-
bytesToHex(
List< int> bytes) → String - Converts a byte array to a hex string.
-
bytesToString(
List< int> bytes) → String - Converts bytes to a UTF-8 encoded string.
-
constantTimeEquals(
List< int> a, List<int> b) → bool - Constant time comparison of two byte arrays. Returns true if the arrays are identical.
-
hexToBytes(
String hex) → Uint8List - Converts a hex string to a byte array.
-
le64(
int value) → Uint8List - Converts a number to little-endian 64-bit byte array.
-
stringToBytes(
String str) → Uint8List - Converts a string to UTF-8 encoded bytes.
-
xor(
List< int> a, List<int> b) → Uint8List - XOR two byte arrays of the same length.