feat: Improve code quality of the cryptography

This commit is contained in:
2023-07-21 17:30:59 +02:00
parent eab467ee1d
commit 563b0386d6
6 changed files with 212 additions and 239 deletions

View File

@@ -28,8 +28,8 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
// ignore: argument_type_not_assignable
final result = Map<String, dynamic>.from(resultRaw);
return CryptographyResult(
result['plaintext_hash']! as Uint8List,
result['ciphertext_hash']! as Uint8List,
result['plaintextHash']! as Uint8List,
result['ciphertextHash']! as Uint8List,
);
}
@@ -56,8 +56,8 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
// ignore: argument_type_not_assignable
final result = Map<String, dynamic>.from(resultRaw);
return CryptographyResult(
result['plaintext_hash']! as Uint8List,
result['ciphertext_hash']! as Uint8List,
result['plaintextHash']! as Uint8List,
result['ciphertextHash']! as Uint8List,
);
}