26 Commits

Author SHA1 Message Date
86811dd24f added exports symbols 2021-04-29 21:42:14 +03:00
ffeda3b4a4 addded export symbols 2021-04-29 21:32:08 +03:00
d14c463d28 Merge remote-tracking branch 'base/master' into HEAD 2020-12-12 11:55:27 +03:00
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
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
8c590ddd34 added export marker for class 2019-07-09 14:09:42 +03:00
Matteo Brichese
4074157f0d cleanup 2019-03-27 21:34:19 -07:00
Matteo Brichese
4ce12493f6 first try on OFB - not tested 2018-04-03 17:42:03 -07:00
Matteo Brichese
b376ee9723 added long text test 2018-04-03 16:52:39 -07:00
Matteo Brichese
80574a11a9 cleanup plus static/instance methods for padding removal 2018-03-28 17:59:11 -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
linev
8b9bcdd933 QByteArrays now passed by reference to improve performance 2018-01-13 15:47:49 +03:00
Matteo Brichese
f651250939 first attempt at CFB mode 2017-07-10 13:10:38 -07:00
Matteo Brichese
4e150f10fb optimizing Rcon table 2017-07-07 15:26:03 -07:00
Matteo Brichese
3b8b68cddc relocating var declaration 2017-07-07 14:20:52 -07:00
Matteo Brichese
15d10586cc formatted following guidelines 2017-07-07 14:10:45 -07:00
Matteo Brichese
b601f21d68 adding static classes 2017-07-06 14:09:36 -07:00
Matteo Brichese
f8d8e62dea reordered var initialization 2017-07-06 11:20:54 -07:00
Matteo Brichese
397a62b4b7 Adding CBC Encryption 2017-07-06 11:09:00 -07:00
Matteo Brichese
81ad4158dd fixing shift column-major order 2017-07-03 10:32:37 -07:00
Matteo Brichese
e434801e64 cleaning and fixing texts bigger than key 2017-06-30 16:11:25 -07:00
Matteo Brichese
c593f99597 fixed qbytearray iteration 2017-06-23 14:24:58 -07:00
Matteo Brichese
50b73771d6 moving forward with the development 2017-06-23 14:24:58 -07:00
Matteo Brichese
a537bcf1b0 initial commit with refactoring in Qt 2017-06-23 14:24:58 -07:00