Fix/Update #1
							
								
								
									
										18
									
								
								melos.yaml
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								melos.yaml
									
									
									
									
									
								
							| @ -16,6 +16,24 @@ scripts: | |||||||
|     run: melos run analyze && melos run format |     run: melos run analyze && melos run format | ||||||
|     description: Run all static analysis checks. |     description: Run all static analysis checks. | ||||||
|    |    | ||||||
|  |   test:all: | ||||||
|  |     run: | | ||||||
|  |       melos run test --no-select | ||||||
|  |     description: | | ||||||
|  |       Run all tests available. | ||||||
|  |    | ||||||
|  |   test: | ||||||
|  |     run: | | ||||||
|  |       melos exec -c 6 --fail-fast -- \ | ||||||
|  |         "flutter test --no-pub --no-test-assets" | ||||||
|  |     description: Run `flutter test` for a specific package. | ||||||
|  |     select-package: | ||||||
|  |       dir-exists: | ||||||
|  |         - test | ||||||
|  |       ignore: | ||||||
|  |         - "*web*" | ||||||
|  |         - "*example*" | ||||||
|  | 
 | ||||||
|   analyze: |   analyze: | ||||||
|     run: | |     run: | | ||||||
|       melos exec -c 10 -- \ |       melos exec -c 10 -- \ | ||||||
|  | |||||||
| @ -91,8 +91,8 @@ class BenchmarkPage extends ConsumerWidget { | |||||||
|         after = DateTime.now(); |         after = DateTime.now(); | ||||||
|         benchmark = |         benchmark = | ||||||
|             after.millisecondsSinceEpoch - before.millisecondsSinceEpoch; |             after.millisecondsSinceEpoch - before.millisecondsSinceEpoch; | ||||||
|         benchmarkStatus |         benchmarkStatus.appendln( | ||||||
|             .appendln('[Benchmark] ${size}MiB => Decryption took $benchmark ms'); |             '[Benchmark] ${size}MiB => Decryption took $benchmark ms'); | ||||||
|         csvLine.write(';$benchmark'); |         csvLine.write(';$benchmark'); | ||||||
|       } |       } | ||||||
|       csv += csvLine.toString() + '\n'; |       csv += csvLine.toString() + '\n'; | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ | |||||||
| // ----- | // ----- | ||||||
| // File: cipher_page.dart | // File: cipher_page.dart | ||||||
| // Created Date: 28/12/2021 13:33:15 | // Created Date: 28/12/2021 13:33:15 | ||||||
| // Last Modified: 26/05/2022 21:07:54 | // Last Modified: 27/05/2022 16:42:10 | ||||||
| // ----- | // ----- | ||||||
| // Copyright (c) 2021 | // Copyright (c) 2021 | ||||||
| 
 | 
 | ||||||
| @ -60,8 +60,6 @@ class CipherPage extends ConsumerWidget { | |||||||
|       cipherText = CipherTextWrapper.fromBytes( |       cipherText = CipherTextWrapper.fromBytes( | ||||||
|         _altered, |         _altered, | ||||||
|         ivLength: AESMode.gcm.ivLength, |         ivLength: AESMode.gcm.ivLength, | ||||||
|         messageLength: |  | ||||||
|             _altered.length - (AESMode.gcm.ivLength + AESMode.gcm.tagLength), |  | ||||||
|         tagLength: AESMode.gcm.tagLength, |         tagLength: AESMode.gcm.tagLength, | ||||||
|       ); |       ); | ||||||
|       encryptionStatus.print('String successfully encrypted:\n'); |       encryptionStatus.print('String successfully encrypted:\n'); | ||||||
|  | |||||||
| @ -39,7 +39,6 @@ abstract class Cipher { | |||||||
|   /// Returns the standard algorithm for this [Cipher]. |   /// Returns the standard algorithm for this [Cipher]. | ||||||
|   CipherAlgorithm get algorithm; |   CipherAlgorithm get algorithm; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|   /// Encrypts the [data]. |   /// Encrypts the [data]. | ||||||
|   /// |   /// | ||||||
|   /// Takes [Uint8List] data as parameter. |   /// Takes [Uint8List] data as parameter. | ||||||
|  | |||||||
| @ -171,6 +171,5 @@ void main() { | |||||||
|         ], |         ], | ||||||
|       ); |       ); | ||||||
|     }); |     }); | ||||||
| 
 |  | ||||||
|   }); |   }); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user