diff --git a/cryptography/lib/cryptography.dart b/cryptography/lib/cryptography.dart index b38ef8e..53cdf9f 100644 --- a/cryptography/lib/cryptography.dart +++ b/cryptography/lib/cryptography.dart @@ -14,7 +14,7 @@ /// Cryptographic algorithms for Dart / Flutter developers. /// -/// # Algorithm types +/// ## Algorithm types /// * [Cipher] /// * [KeyExchangeAlgorithm] /// * [KdfAlgorithm] @@ -22,7 +22,7 @@ /// * [MacAlgorithm] /// * [SignatureAlgorithm] /// -/// # Implementation factory +/// ## Implementation factory /// /// [Cryptography.instance] determines which implementation of an algorithm is /// used when you call factory method such as [Sha256()]. diff --git a/cryptography/lib/dart.dart b/cryptography/lib/dart.dart index e59175f..9683f25 100644 --- a/cryptography/lib/dart.dart +++ b/cryptography/lib/dart.dart @@ -16,7 +16,7 @@ /// /// See [DartCryptography]. /// -/// # Synchronous evaluation +/// ## Synchronous evaluation /// * [DartCipher] /// * [DartHashAlgorithm] /// * [DartMacAlgorithm] diff --git a/cryptography/lib/src/browser/cryptography_outside_browser.dart b/cryptography/lib/src/browser/cryptography_outside_browser.dart index 7ff3134..00f3887 100644 --- a/cryptography/lib/src/browser/cryptography_outside_browser.dart +++ b/cryptography/lib/src/browser/cryptography_outside_browser.dart @@ -17,7 +17,7 @@ import 'package:cryptography/dart.dart'; /// An implementation of [Cryptography] using Web Cryptography API. /// -/// # Algorithms +/// ## Algorithms /// The following algorithms are supported: /// * [AesCbc] /// * [AesCtr] diff --git a/cryptography/lib/src/cryptography/algorithms.dart b/cryptography/lib/src/cryptography/algorithms.dart index f3e3188..37a6885 100644 --- a/cryptography/lib/src/cryptography/algorithms.dart +++ b/cryptography/lib/src/cryptography/algorithms.dart @@ -7,13 +7,13 @@ import 'package:meta/meta.dart'; /// _AES-CBC_ (cipher block chaining mode) [Cipher]. /// -/// # Available implementation +/// ## Available implementation /// * In browsers, [BrowserAesCbc] is used by default. /// * Otherwise [DartAesCbc] is used by default. /// * The package [cryptography_flutter](https://pub.dev/packages/cryptography_flutter) /// supports native implementations available in Android and iOS. /// -/// # About the algorithm +/// ## About the algorithm /// * Three possible key lengths: /// * 128 bits: [AesCbc.with128bits] /// * 192 bits: [AesCbc.with192bits] @@ -24,7 +24,7 @@ import 'package:meta/meta.dart'; /// * You must choose some [macAlgorithm]. If you are sure that you don't need /// one, use [MacAlgorithm.empty]. /// -/// # Example +/// ## Example /// ```dart /// import 'package:cryptography/cryptography.dart'; /// @@ -112,13 +112,13 @@ abstract class AesCbc extends Cipher { /// _AES-CTR_ (counter mode) [Cipher]. /// -/// # Available implementation +/// ## Available implementation /// * In browsers, [BrowserAesCtr] is used by default. /// * Otherwise [DartAesCtr] is used by default. /// * The package [cryptography_flutter](https://pub.dev/packages/cryptography_flutter) /// supports native implementations available in Android and iOS. /// -/// # About the algorithm +/// ## About the algorithm /// * Three possible key lengths: /// * 128 bits: [AesCtr.with128bits] /// * 192 bits: [AesCtr.with192bits] @@ -132,7 +132,7 @@ abstract class AesCbc extends Cipher { /// * You must choose some [macAlgorithm]. If you are sure that you don't need /// one, use [MacAlgorithm.empty]. /// -/// # Example +/// ## Example /// ```dart /// import 'package:cryptography/cryptography.dart'; /// @@ -229,7 +229,7 @@ abstract class AesCtr extends StreamingCipher { /// _AES-GCM_ (Galois/Counter Mode) [Cipher]. /// -/// # Available implementation +/// ## Available implementation /// * In browsers, [BrowserAesGcm] is used by default. /// * Otherwise [DartAesGcm] is used by default. /// * The package [cryptography_flutter](https://pub.dev/packages/cryptography_flutter) @@ -237,7 +237,7 @@ abstract class AesCtr extends StreamingCipher { /// __We recommend you use "package:cryptography_flutter" for the best /// performance and easier cryptographic compliance.__ /// -/// # About the algorithm +/// ## About the algorithm /// * Three possible key lengths: /// * 128 bits: [AesGcm.with128bits] /// * 192 bits: [AesGcm.with192bits] @@ -250,7 +250,7 @@ abstract class AesCtr extends StreamingCipher { /// * AES-GCM standard specifies a MAC algorithm ("GCM"). The output is a /// 128-bit [Mac]. /// -/// # Example +/// ## Example /// ```dart /// import 'package:cryptography/cryptography.dart'; /// @@ -352,7 +352,7 @@ abstract class AesGcm extends StreamingCipher { /// algorithm can provide much better security than older algorithms such as /// [Pbkdf2]. /// -/// # Example +/// ## Example /// ``` /// import 'package:cryptography/cryptography.dart'; /// @@ -374,7 +374,7 @@ abstract class AesGcm extends StreamingCipher { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartArgon2id] in /// _package:cryptography/dart.dart_. @@ -488,7 +488,7 @@ abstract class Argon2id extends KdfAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartBlake2b] in /// _package:cryptography/dart.dart_. @@ -553,7 +553,7 @@ abstract class Blake2b extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartBlake2s] in /// _package:cryptography/dart.dart_. @@ -587,11 +587,11 @@ abstract class Blake2s extends HashAlgorithm { /// which does message authentication with a standard AEAD construction for /// _ChaCha20_. /// -/// # About the algorithm +/// ## About the algorithm /// * [secretKeyLength] is 32 bytes. /// * [nonceLength] is 12 bytes.\ /// -/// # Example +/// ## Example /// ```dart /// import 'package:cryptography/cryptography.dart'; /// @@ -619,7 +619,7 @@ abstract class Blake2s extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartChacha20] in /// _package:cryptography/dart.dart_. @@ -640,7 +640,7 @@ abstract class Chacha20 extends StreamingCipher { /// MAC. AAD (Associated Authenticated Data) is supported by [encrypt()] and /// [decrypt()]. /// - /// # About the algorithm + /// ## About the algorithm /// * [secretKeyLength] is 32 bytes. /// * [nonceLength] is 12 bytes.\ factory Chacha20.poly1305Aead() { @@ -856,7 +856,7 @@ abstract class Ecdsa extends SignatureAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartEd25519] in /// _package:cryptography/dart.dart_. @@ -977,7 +977,7 @@ abstract class Hkdf extends KdfAlgorithm { /// /// If you need synchronous computations, use [DartHmac]. /// -/// # Example +/// ## Example /// ``` /// import 'package:cryptography/cryptography.dart'; /// @@ -1324,7 +1324,7 @@ abstract class RsaSsaPkcs1v15 extends SignatureAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartSha1] in /// _package:cryptography/dart.dart_. @@ -1390,7 +1390,7 @@ abstract class Sha1 extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartSha224] in /// _package:cryptography/dart.dart_. @@ -1456,7 +1456,7 @@ abstract class Sha224 extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartSha256] in /// _package:cryptography/dart.dart_. @@ -1522,7 +1522,7 @@ abstract class Sha256 extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartSha384] in /// _package:cryptography/dart.dart_. @@ -1588,7 +1588,7 @@ abstract class Sha384 extends HashAlgorithm { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartSha512] in /// _package:cryptography/dart.dart_. @@ -1679,7 +1679,7 @@ abstract class StreamingCipher extends Cipher { /// } /// ``` /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartX25519] in /// _package:cryptography/dart.dart_. @@ -1724,7 +1724,7 @@ abstract class X25519 extends KeyExchangeAlgorithm { /// /// See [chacha20]. /// -/// # In need of synchronous APIs? +/// ## In need of synchronous APIs? /// /// If you need to perform operations synchronously, use [DartXchacha20] in /// _package:cryptography/dart.dart_. diff --git a/cryptography/lib/src/cryptography/cipher.dart b/cryptography/lib/src/cryptography/cipher.dart index 0f4ce29..dcce4be 100644 --- a/cryptography/lib/src/cryptography/cipher.dart +++ b/cryptography/lib/src/cryptography/cipher.dart @@ -19,7 +19,7 @@ import 'package:cryptography/helpers.dart'; /// A cipher that supports [encrypt()] and [decrypt()]. /// -/// # Available algorithms +/// ## Available algorithms /// * [AesCbc] /// * [AesCtr] /// * [AesGcm] @@ -28,7 +28,7 @@ import 'package:cryptography/helpers.dart'; /// * [Xchacha20] /// * [Xchacha20.poly1305Aead] /// -/// # Example +/// ## Example /// An example of using [AesCtr] and [Hmac]: /// ``` /// import 'package:cryptography/cryptography.dart'; diff --git a/cryptography/lib/src/cryptography/cryptography.dart b/cryptography/lib/src/cryptography/cryptography.dart index 23fae67..f6d4f86 100644 --- a/cryptography/lib/src/cryptography/cryptography.dart +++ b/cryptography/lib/src/cryptography/cryptography.dart @@ -18,12 +18,12 @@ import 'package:cryptography/dart.dart'; /// Returns cryptographic algorithm implementations. /// -/// # Implementations +/// ## Implementations /// * [DartCryptography] /// * [BrowserCryptography] /// * [FlutterCryptography](https://pub.dev/documentation/cryptography_flutter/latest/cryptography_flutter/FlutterCryptography-class.html) (_package:cryptography_flutter_) /// -/// # Setting implementation +/// ## Setting implementation /// In tests, you can set the static variable like this: /// ``` /// import 'package:cryptography/cryptography.dart'; diff --git a/cryptography/lib/src/cryptography/ec_key_pair.dart b/cryptography/lib/src/cryptography/ec_key_pair.dart index 877335d..c4ae01a 100644 --- a/cryptography/lib/src/cryptography/ec_key_pair.dart +++ b/cryptography/lib/src/cryptography/ec_key_pair.dart @@ -21,11 +21,11 @@ import 'package:cryptography/helpers.dart'; /// If you are encoding/decoding JWK (JSON Web Key) format, use /// [package:jwk](https://pub.dev/packages/jwk). /// -/// # Related classes +/// ## Related classes /// * [EcKeyPairData] /// * [EcPublicKey] /// -/// # Algorithms that use this class +/// ## Algorithms that use this class /// * [Ecdh] /// * [Ecdsa] /// diff --git a/cryptography/lib/src/cryptography/ec_public_key.dart b/cryptography/lib/src/cryptography/ec_public_key.dart index 9f90ff0..1586810 100644 --- a/cryptography/lib/src/cryptography/ec_public_key.dart +++ b/cryptography/lib/src/cryptography/ec_public_key.dart @@ -21,11 +21,11 @@ import 'package:cryptography/cryptography.dart'; /// If you are encoding/decoding JWK (JSON Web Key) format, use /// [package:jwk](https://pub.dev/packages/jwk). /// -/// # Related classes +/// ## Related classes /// * [EcKeyPair] /// * [EcKeyPairData] /// -/// # Algorithms that use this class +/// ## Algorithms that use this class /// * [Ecdh] /// * [Ecdsa] /// diff --git a/cryptography/lib/src/cryptography/hash_algorithm.dart b/cryptography/lib/src/cryptography/hash_algorithm.dart index 65906c7..460db00 100644 --- a/cryptography/lib/src/cryptography/hash_algorithm.dart +++ b/cryptography/lib/src/cryptography/hash_algorithm.dart @@ -20,7 +20,7 @@ import 'package:meta/meta.dart'; /// A hash algorithm that produces a [Hash]. /// -/// # Available algorithms +/// ## Available algorithms /// * [Blake2b] /// * [Blake2s] /// * [Sha1] @@ -29,7 +29,7 @@ import 'package:meta/meta.dart'; /// * [Sha384] (SHA2-384) /// * [Sha512] (SHA2-512) /// -/// # Example: simple usage +/// ## Example: simple usage /// ``` /// import 'package:cryptography/cryptography.dart'; /// @@ -40,7 +40,7 @@ import 'package:meta/meta.dart'; /// } /// ``` /// -/// # Example: hashing many chunks +/// ## Example: hashing many chunks /// ``` /// import 'package:cryptography/cryptography.dart'; /// @@ -81,7 +81,7 @@ abstract class HashAlgorithm { /// Constructs a sink for hashing chunks. /// - /// # Example + /// ## Example /// An example with [Sha256]: /// ``` /// import 'package:cryptography/cryptography.dart'; diff --git a/cryptography/lib/src/cryptography/kdf_algorithm.dart b/cryptography/lib/src/cryptography/kdf_algorithm.dart index c22d324..e8ed319 100644 --- a/cryptography/lib/src/cryptography/kdf_algorithm.dart +++ b/cryptography/lib/src/cryptography/kdf_algorithm.dart @@ -16,7 +16,7 @@ import 'package:cryptography/cryptography.dart'; /// Abstract superclass for Key Derivation Algorithms (KDFs). /// -/// # Available algorithms +/// ## Available algorithms /// * [Argon2id] (suitable for password hashing) /// * [Hchacha20] /// * [Hkdf] diff --git a/cryptography/lib/src/cryptography/key_exchange_algorithm.dart b/cryptography/lib/src/cryptography/key_exchange_algorithm.dart index 4ade71e..1aa1c2f 100644 --- a/cryptography/lib/src/cryptography/key_exchange_algorithm.dart +++ b/cryptography/lib/src/cryptography/key_exchange_algorithm.dart @@ -16,13 +16,13 @@ import 'package:cryptography/cryptography.dart'; /// A key exchange algorithm that supports [newKeyPair()] and [sharedSecretKey()]. /// -/// # Available algorithms +/// ## Available algorithms /// * [Ecdh.p256] /// * [Ecdh.p384] /// * [Ecdh.p521] /// * [X25519] /// -/// # Example +/// ## Example /// In this example, we use [X25519]: /// ```dart /// import 'package:cryptography/cryptography.dart'; diff --git a/cryptography/lib/src/cryptography/key_pair.dart b/cryptography/lib/src/cryptography/key_pair.dart index f78facf..a9b263e 100644 --- a/cryptography/lib/src/cryptography/key_pair.dart +++ b/cryptography/lib/src/cryptography/key_pair.dart @@ -29,7 +29,7 @@ abstract class KeyPair { /// Extracted data of a [KeyPair]. /// -/// # Subclasses +/// ## Subclasses /// * [EcKeyPairData] /// * [SimpleKeyPairData] /// * [RsaKeyPairData] @@ -50,7 +50,7 @@ abstract class KeyPairData extends KeyPair { /// A public key of some [KeyPair]. /// -/// # Subclasses +/// ## Subclasses /// * [EcPublicKey] /// * [SimplePublicKey] /// * [RsaPublicKey] diff --git a/cryptography/lib/src/cryptography/secret_box.dart b/cryptography/lib/src/cryptography/secret_box.dart index 01b6fe9..860953d 100644 --- a/cryptography/lib/src/cryptography/secret_box.dart +++ b/cryptography/lib/src/cryptography/secret_box.dart @@ -24,7 +24,7 @@ import 'package:cryptography/src/utils.dart'; /// * [cipherText] /// * [mac] (message authentication code) /// -/// # Concatenating fields +/// ## Concatenating fields /// When you storing / loading secret boxes, you can use [concatenation] and /// [fromConcatenation]: /// ``` diff --git a/cryptography/lib/src/cryptography/secret_key.dart b/cryptography/lib/src/cryptography/secret_key.dart index 623aed6..ad5cd29 100644 --- a/cryptography/lib/src/cryptography/secret_key.dart +++ b/cryptography/lib/src/cryptography/secret_key.dart @@ -66,7 +66,7 @@ class SecretKeyData extends SecretKey { /// You can give a custom random number generator. This can be useful for /// deterministic tests. /// - /// # Example + /// ## Example /// ``` /// // Generate 32 random bytes /// final key = SecretKey.randomBytes(32); diff --git a/cryptography/lib/src/cryptography/signature_algorithm.dart b/cryptography/lib/src/cryptography/signature_algorithm.dart index 4ebff45..331c002 100644 --- a/cryptography/lib/src/cryptography/signature_algorithm.dart +++ b/cryptography/lib/src/cryptography/signature_algorithm.dart @@ -17,7 +17,7 @@ import 'package:cryptography/cryptography.dart'; /// An digital signature algorithm that supports [newKeyPair()], [sign()], /// [verify()]. /// -/// # Available algorithms +/// ## Available algorithms /// * [Ecdsa.p256] /// * [Ecdsa.p384] /// * [Ecdsa.p521] @@ -25,7 +25,7 @@ import 'package:cryptography/cryptography.dart'; /// * [RsaPss] /// * [RsaSsaPkcs1v15] /// -/// # Example +/// ## Example /// In this example, we use [Ed25519]: /// ``` /// import 'package:cryptography/cryptography.dart'; diff --git a/cryptography/lib/src/cryptography/simple_key_pair.dart b/cryptography/lib/src/cryptography/simple_key_pair.dart index dabdc10..fe6867c 100644 --- a/cryptography/lib/src/cryptography/simple_key_pair.dart +++ b/cryptography/lib/src/cryptography/simple_key_pair.dart @@ -62,7 +62,7 @@ class SimpleKeyPairData extends KeyPairData implements SimpleKeyPair { this.bytes, { required FutureOr publicKey, required this.type, - }) : _publicKey = publicKey, + }) : _publicKey = publicKey, super(type: type); @override diff --git a/cryptography/lib/src/dart/argon2.dart b/cryptography/lib/src/dart/argon2.dart index 9157b63..51ed217 100644 --- a/cryptography/lib/src/dart/argon2.dart +++ b/cryptography/lib/src/dart/argon2.dart @@ -36,7 +36,7 @@ class DartArgon2id extends Argon2id { required this.memorySize, required this.iterations, required this.hashLength, - }) : assert(parallelism >= 1), + }) : assert(parallelism >= 1), assert(memorySize >= 8 * parallelism), assert(iterations >= 1), assert(hashLength >= 4), diff --git a/cryptography/lib/src/dart/chacha20.dart b/cryptography/lib/src/dart/chacha20.dart index a65c075..beebed4 100644 --- a/cryptography/lib/src/dart/chacha20.dart +++ b/cryptography/lib/src/dart/chacha20.dart @@ -20,7 +20,7 @@ import 'package:cryptography/src/utils.dart'; /// [Chacha20] implemented in pure Dart. /// -/// # Recommendation +/// ## Recommendation /// Usually you should use [Cryptography.chacha20]: /// ``` /// final cipher = Cryptography.instance.chacha20() diff --git a/cryptography/lib/src/dart/cryptography.dart b/cryptography/lib/src/dart/cryptography.dart index d148a6d..8f60a7e 100644 --- a/cryptography/lib/src/dart/cryptography.dart +++ b/cryptography/lib/src/dart/cryptography.dart @@ -17,7 +17,7 @@ import 'package:cryptography/dart.dart'; /// An implementation of [Cryptography] in pure Dart. /// -/// # Algorithms +/// ## Algorithms /// The following algorithms are supported: /// * [AesCbc] /// * [AesCtr] diff --git a/cryptography/lib/src/dart/pbkdf2.dart b/cryptography/lib/src/dart/pbkdf2.dart index b2baa43..440f993 100644 --- a/cryptography/lib/src/dart/pbkdf2.dart +++ b/cryptography/lib/src/dart/pbkdf2.dart @@ -31,7 +31,7 @@ class DartPbkdf2 extends Pbkdf2 { required this.macAlgorithm, required this.iterations, required this.bits, - }) : assert(iterations >= 1), + }) : assert(iterations >= 1), assert(bits >= 64), super.constructor(); diff --git a/cryptography/lib/src/dart/poly1305.dart b/cryptography/lib/src/dart/poly1305.dart index 3a30bc9..11fa479 100644 --- a/cryptography/lib/src/dart/poly1305.dart +++ b/cryptography/lib/src/dart/poly1305.dart @@ -18,7 +18,7 @@ import 'package:cryptography/cryptography.dart'; /// [Poly1305] implemented in pure Dart. /// -/// # Known limitations +/// ## Known limitations /// * Currently uses [BigInt] class DartPoly1305 extends Poly1305 { const DartPoly1305() : super.constructor(); diff --git a/cryptography/lib/src/dart/xchacha20.dart b/cryptography/lib/src/dart/xchacha20.dart index 7e8ea5c..d56ea81 100644 --- a/cryptography/lib/src/dart/xchacha20.dart +++ b/cryptography/lib/src/dart/xchacha20.dart @@ -26,7 +26,7 @@ class DartXchacha20 extends Xchacha20 { DartXchacha20({ required this.macAlgorithm, - }) : _chacha20 = Chacha20(macAlgorithm: MacAlgorithm.empty), + }) : _chacha20 = Chacha20(macAlgorithm: MacAlgorithm.empty), _hchacha20 = Hchacha20(), super.constructor(); diff --git a/cryptography/lib/src/utils/bytes.dart b/cryptography/lib/src/utils/bytes.dart index e426a32..e6e2b01 100644 --- a/cryptography/lib/src/utils/bytes.dart +++ b/cryptography/lib/src/utils/bytes.dart @@ -16,7 +16,7 @@ import 'dart:typed_data'; /// Interprets the bytes a big endian integer and increments them by [int]. /// -/// # Example +/// ## Example /// ``` /// final bytes = [0,2,255]; /// bytesIncrementBigEndian(bytes, 5); diff --git a/cryptography/test/secret_box_test.dart b/cryptography/test/secret_box_test.dart index be7c211..c058ca7 100644 --- a/cryptography/test/secret_box_test.dart +++ b/cryptography/test/secret_box_test.dart @@ -73,7 +73,6 @@ void main() { ); }); - // checkMac() is tested in other tests too, but some redundancy is good. test('checkMac()', () async { final algorithm = Chacha20(macAlgorithm: Poly1305()); diff --git a/cryptography_flutter/example/lib/main.dart b/cryptography_flutter/example/lib/main.dart index ba6ec3e..aca5544 100644 --- a/cryptography_flutter/example/lib/main.dart +++ b/cryptography_flutter/example/lib/main.dart @@ -174,8 +174,7 @@ class _CipherPageState extends State { minLines: 1, maxLines: 16, enableInteractiveSelection: true, - decoration: - InputDecoration(labelText: 'Ciphertext (hex)'), + decoration: InputDecoration(labelText: 'Ciphertext (hex)'), ), const SizedBox(height: 10), TextField( diff --git a/cryptography_flutter/lib/src/aes_cbc.dart b/cryptography_flutter/lib/src/aes_cbc.dart index 8756ccc..ed5ff20 100644 --- a/cryptography_flutter/lib/src/aes_cbc.dart +++ b/cryptography_flutter/lib/src/aes_cbc.dart @@ -20,4 +20,4 @@ class FlutterAesCbc extends FlutterCipher implements AesCbc { @override int get secretKeyLength => fallback.secretKeyLength; -} \ No newline at end of file +} diff --git a/cryptography_flutter/lib/src/aes_ctr.dart b/cryptography_flutter/lib/src/aes_ctr.dart index a2e6bfe..c7ca2bc 100644 --- a/cryptography_flutter/lib/src/aes_ctr.dart +++ b/cryptography_flutter/lib/src/aes_ctr.dart @@ -22,4 +22,4 @@ class FlutterAesCtr extends FlutterStreamingCipher implements AesCtr { @override int get secretKeyLength => fallback.secretKeyLength; -} \ No newline at end of file +} diff --git a/cryptography_flutter/lib/src/aes_gcm.dart b/cryptography_flutter/lib/src/aes_gcm.dart index 6573995..730a454 100644 --- a/cryptography_flutter/lib/src/aes_gcm.dart +++ b/cryptography_flutter/lib/src/aes_gcm.dart @@ -20,4 +20,4 @@ class FlutterAesGcm extends FlutterStreamingCipher implements AesGcm { @override int get secretKeyLength => fallback.secretKeyLength; -} \ No newline at end of file +} diff --git a/cryptography_flutter/lib/src/chacha20.dart b/cryptography_flutter/lib/src/chacha20.dart index a818fa6..ad66bf1 100644 --- a/cryptography_flutter/lib/src/chacha20.dart +++ b/cryptography_flutter/lib/src/chacha20.dart @@ -15,8 +15,8 @@ class FlutterChacha20 extends FlutterStreamingCipher implements Chacha20 { @override bool get isSupportedPlatform => (Platform.isAndroid || Platform.isIOS || Platform.isMacOS) && - macAlgorithm is DartChacha20Poly1305AeadMacAlgorithm; + macAlgorithm is DartChacha20Poly1305AeadMacAlgorithm; @override String get pluginCipherName => 'Chacha20.poly1305Aead'; -} \ No newline at end of file +} diff --git a/cryptography_flutter/lib/src/flutter_cryptography.dart b/cryptography_flutter/lib/src/flutter_cryptography.dart index 8acf222..d129d3d 100644 --- a/cryptography_flutter/lib/src/flutter_cryptography.dart +++ b/cryptography_flutter/lib/src/flutter_cryptography.dart @@ -15,7 +15,8 @@ import 'package:cryptography/browser.dart'; import 'package:cryptography/cryptography.dart'; -import 'flutter_cryptography_impl_vm.dart' if (dart.library.html) 'flutter_cryptography_impl_browser.dart'; +import 'flutter_cryptography_impl_vm.dart' + if (dart.library.html) 'flutter_cryptography_impl_browser.dart'; /// An implementation [Cryptography] that uses native operating system APIs. /// diff --git a/cryptography_flutter/lib/src/flutter_cryptography_impl_browser.dart b/cryptography_flutter/lib/src/flutter_cryptography_impl_browser.dart index 8ded0ae..4f312df 100644 --- a/cryptography_flutter/lib/src/flutter_cryptography_impl_browser.dart +++ b/cryptography_flutter/lib/src/flutter_cryptography_impl_browser.dart @@ -16,6 +16,5 @@ import 'package:cryptography/browser.dart'; import '../cryptography_flutter.dart'; -class FlutterCryptographyImpl extends BrowserCryptography implements FlutterCryptography { - -} +class FlutterCryptographyImpl extends BrowserCryptography + implements FlutterCryptography {} diff --git a/cryptography_flutter/lib/src/flutter_cryptography_impl_vm.dart b/cryptography_flutter/lib/src/flutter_cryptography_impl_vm.dart index 6983c22..140a8be 100644 --- a/cryptography_flutter/lib/src/flutter_cryptography_impl_vm.dart +++ b/cryptography_flutter/lib/src/flutter_cryptography_impl_vm.dart @@ -17,7 +17,8 @@ import 'package:cryptography/cryptography.dart'; import '../cryptography_flutter.dart'; -class FlutterCryptographyImpl extends BrowserCryptography implements FlutterCryptography { +class FlutterCryptographyImpl extends BrowserCryptography + implements FlutterCryptography { FlutterCryptographyImpl(); @override