Oleg Derevenetz
0ddf76d59a
Minor improvements ( #33 )
...
* Pass expKey parameter of addRoundKey() by const reference to avoid unnecessary copy.
* Use C++11 nullptr instead of NULL, make it clear that default value of iv parameter in encode() and decode() is empty QByteArray instead of implicit conversion from null pointer via QByteArray(const char *, int = -1) constructor.
* Change parameter names in declarations of cipher(), invCipher() and byteXor() to match definitions.
* Convert AES-NI-related files to headers, place functions with internal linkage to anonymous namespace to avoid exporting them, don't use inline specifier (inline keyword have different meaning in C++ rather than in C).
* Use char literals instead of implementation-defined int-to-signed-char conversions where possible.
* Set default value for padding argument in static RemovePadding() to match sample in README.
2020-09-09 12:39:11 -07:00
Ilya Chesalin
a22e7bd5f9
Fixed invShiftRows in Shift 3 ( #30 )
...
This must be broken. The indices of iterable inside shift 3 seem random and do not correspond to the AES algorighm. More than that, it should be reversed from shiftRows methods, and shifts 1 and 2 seem normal.
2020-05-15 17:28:30 -07:00
Matteo Brichese
74643b2570
updated readme after aesni merge
2020-05-15 16:58:38 -07:00
Matteo B
78efdb4f3f
Adding ECB and CBC modes via AES-NI ( #32 )
...
Added ECB and CBC modes via AES-NI, only is enabled and supported
2020-05-15 16:45:35 -07:00
Matteo B
f5ef736a7f
Merge pull request #29 from mcmule/retrocomp-qbytearray-qt-lts
...
adding qt version check to keep retrocomp with qt pre 5.10 qbytearray
2019-07-09 10:44:11 -07:00
Marc Muller
57b0cdf743
adding qt version check to keep retrocomp with qt pre 5.10 qbytearray
2019-06-28 11:40:31 +02:00
Matteo Brichese
4074157f0d
cleanup
2019-03-27 21:34:19 -07:00
Matteo B
62d159430b
Merge pull request #25 from bricke/fix_PKCS7_blocklen
...
Fix PKCS7 when text size is a multiple of block size
2019-03-27 21:12:59 -07:00
Matteo Brichese
9537c6e5ad
fixed size for blocklen
2019-03-27 21:09:59 -07:00
Matteo Brichese
4a06e8728a
fix PKCS7 when text size is a multiple of block size
2019-03-27 21:04:58 -07:00
Matteo Brichese
3d4c882683
fix types and new added new test
2018-12-06 19:43:42 -08:00
Matteo B
39bc5e170e
Merge pull request #19 from tomgey/master
...
Fix ISO removePadding
2018-12-06 11:38:58 -08:00
Thomas Geymayer
3f2b2bcdce
Fix ISO removePadding
...
Fix removing of ISO padding when no padding was added.
2018-11-14 12:10:55 +01:00
Matteo B
a2ef03872b
Update README.md
2018-10-18 08:21:05 -07:00
Matteo Brichese
935b3d9c14
Update README.md
2018-04-09 16:07:33 -07:00
Matteo Brichese
d040dc73dc
Merge branch 'master' of https://github.com/bricke/Qt-AES
2018-04-05 16:23:11 -07:00
Matteo Brichese
6096400737
adding OFB test
2018-04-05 16:23:01 -07:00
Matteo Brichese
c0cf26380d
Update README.md
2018-04-05 16:16:11 -07:00
Matteo Brichese
d96ee60dee
Update README.md
2018-04-05 16:15:32 -07:00
Matteo Brichese
e0d35f2fde
updated readme
2018-04-05 16:13:03 -07:00
Matteo Brichese
e5f942d924
Merge pull request #9 from bricke/OFB_dev
...
Ofb dev
2018-04-05 16:09:41 -07:00
Matteo Brichese
278565d661
adding OFB with basic test
2018-04-05 16:07:22 -07:00
Matteo Brichese
95104a6ef9
removing insert to fix compatibility with Qt5.6
2018-04-04 11:41:41 -07:00
Matteo Brichese
4ce12493f6
first try on OFB - not tested
2018-04-03 17:42:03 -07:00
Matteo Brichese
6fc1d88485
Merge branch 'master' of https://github.com/bricke/Qt-AES
2018-04-03 16:52:56 -07:00
Matteo Brichese
b376ee9723
added long text test
2018-04-03 16:52:39 -07:00
Matteo Brichese
a74a46e08e
Update README.md
1.1
2018-03-28 18:02:21 -07:00
Matteo Brichese
839c544555
updated readme
2018-03-28 18:01:14 -07:00
Matteo Brichese
80574a11a9
cleanup plus static/instance methods for padding removal
2018-03-28 17:59:11 -07:00
Matteo Brichese
b616caf7c1
Merge pull request #7 from bricke/test_padding
...
no conflicts
2018-03-28 17:51:38 -07:00
Matteo Brichese
56c2554df5
added padding stuff
2018-03-28 17:50:41 -07:00
Matteo Brichese
f94a6339de
padding tests
2018-03-28 17:47:20 -07:00
Matteo Brichese
1809de722f
working on padding feature
2018-03-28 17:42:09 -07:00
Matteo Brichese
dcb49d1fd1
adding padding standards
2018-03-28 16:43:13 -07:00
Matteo Brichese
c44296051f
fix title
2018-03-28 16:03:51 -07:00
Matteo Brichese
b7f75cbd2e
adding padding disclaimer
2018-03-28 16:03:30 -07:00
Matteo Brichese
8be7a0851d
Merge pull request #5 from BeardedBeaver/feature/Feature-ByteArrayByReference
...
QByteArrays now passed by reference to improve performance
2018-01-29 11:27:51 -08:00
Matteo Brichese
d69745c43e
fixing IV in examples
2018-01-29 11:16:58 -08:00
linev
8b9bcdd933
QByteArrays now passed by reference to improve performance
2018-01-13 15:47:49 +03:00
Matteo Brichese
8b58ac9a3b
Merge pull request #3 from fetzerch/qt5.5
...
Fix compatibility with Qt 5.5
2017-11-06 14:28:27 -08:00
Christian Fetzer
dc64718fd5
Fix compatibility with Qt 5.5
...
QByteArray &QByteArray::append(int count, char ch) was introduced in Qt
5.7. This patch allows the project to be used with for example with the
current Ubuntu LTS version (16.04 Xenial).
2017-11-05 20:08:14 +01:00
Matteo Brichese
355230f397
security disclaimer
2017-07-13 09:07:19 -07:00
Matteo Brichese
3350cf1760
Merge pull request #1 from bricke/CFB-mode
...
CFB mode
v1.0
2017-07-10 14:12:55 -07:00
Matteo Brichese
666e9dd004
updated readme
2017-07-10 14:12:09 -07:00
Matteo Brichese
e05e387b5c
adding CFB-mode
2017-07-10 14:03:57 -07:00
Matteo Brichese
f651250939
first attempt at CFB mode
2017-07-10 13:10:38 -07:00
Matteo Brichese
8470ae108a
Update README.md
2017-07-10 10:40:59 -07:00
Matteo Brichese
e40e4ae8d6
Update README.md
2017-07-10 10:40:43 -07:00
Matteo Brichese
ae940ecbaf
Update README.md
2017-07-07 15:42:28 -07:00
Matteo Brichese
4e150f10fb
optimizing Rcon table
2017-07-07 15:26:03 -07:00