AKushWarrior / steel_crypt

A collection of high-level API's exposing PointyCastle to perform hashing and encrypting in popular/secure algorithms.
https://pub.dev/packages/steel_crypt
Mozilla Public License 2.0
40 stars 10 forks source link

why key must 32-bits,I see java 16 bits, AES ECB #13

Closed yizems closed 4 years ago

yizems commented 4 years ago

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: RangeError (start): Invalid value: Only valid value is 0: -16 E/flutter (10664): #0 RangeError.checkValidRange (dart:core/errors.dart:328:7) E/flutter (10664): #1 _TypedIntListMixin.sublist (dart:typed_data-patch/typed_data_patch.dart:460:22) E/flutter (10664): #2 PaddedBlockCipherImpl.doFinal (package:steel_crypt/PointyCastleN/padded_block_cipher/padded_block_cipher_impl.dart:95:64) E/flutter (10664): #3 PaddedBlockCipherImpl.process (package:steel_crypt/PointyCastleN/padded_block_cipher/padded_block_cipher_impl.dart:82:25)