clientDataHash32 method
- PassKeysOptions options,
- {String? challenge}
override
Creates a 32-byte client data hash for PassKeys authentication.
options
: The PassKeysOptions for the client data hash.challenge
: A random challenge for the client data hash.
Returns a Uint8List representing the 32-byte client data hash.
Implementation
@override
Uint8List clientDataHash32(PassKeysOptions options, {String? challenge}) {
final dataBuffer = clientDataHash(options, challenge: challenge);
final hash = sha256Hash(dataBuffer);
return Uint8List.fromList(hash.bytes);
}