I had another question posted at Throughput for PointyCastle's aes cbc? but I don't consider this a duplicate.
I am trying to encrypt files using AES-CBC in flutter and came across the PointyCastle and Cryptography packages. Both appear to be software implementations of AES and are not using AES-NI, the built in AES instructions on modern processors. I am seeing that PointyCastle is significantly slower (15 seconds vs. 1.5 seconds for 100mb on my machine) than the Cryptography package. I have a gist created here to test both of these packages. You can add the packages with these commands:
flutter pub add cryptography
flutter pub add pointycastle
https://gist.github.com/hootyjeremy/58ff2cd7d11423f3cf5e6cd11afd6b3b
I have followed the example from PointyCastle to encrypt but maybe I'm doing something else wrong? Can you reproduce this disparity in performance also? I probably wouldn't make this post if the timings were slightly slower but to take 15 seconds for 100mb (on my machine) seems very very high.