Commit Graph

68 Commits

Author SHA1 Message Date
kokke c3b7532b6d
Merge pull request #173 from Youw/master
use size_t for buffer size and its indexes
2021-01-06 02:35:05 +01:00
Ihor Dutchak 2ca3e81f3c use size_t for buffer size and its indexes
- this allows using CBC/CTR with buffers larger than 4GB on 64bit systems;

Closes: #172

Signed-off-by: Ihor Dutchak <ihor.youw@gmail.com>
2020-09-26 19:10:19 +03:00
Jacob Siverskog d2b3cd64e8 Fix compiler warning in CTR only mode
Fixes the following warning:

aes.c:98:22: warning: 'rsbox' defined but not used [-Wunused-const-variable=]
   98 | static const uint8_t rsbox[256] = {
      |                      ^~~~~

With CBC = 0, ECB = 0 and CTR = 1.
2020-05-28 10:52:50 +02:00
kokke 7a3de7ed01
removing commented-out call to printf... 2020-03-30 21:47:48 +02:00
Dmitry 6be2e11a23 loop optimization 2020-03-03 22:36:20 +03:00
kokke f9fc97a6e4
Update aes.c 2020-01-24 16:54:19 +01:00
kokke ca85e00de9
Update aes.c
cosmetic: fixing whitespace / indentation
2019-02-22 09:25:36 +01:00
Torfinn Berset 7a35660a00 Const-qualify all read-only pointers 2019-02-21 09:31:53 +01:00
Roy Keene a5e18ec995 Also only define the Inv* family of functions if InvCipher is being compiled
Since only it uses them
2019-01-22 12:04:17 -06:00
Roy Keene c033c7c7e4 Only define InvCipher if needed
If AES is being compiled only for AES-CTR, don't compile InvCipher since it is not used
2019-01-11 16:36:17 +00:00
kokke 0677e48a49
Update aes.c
Suggestion by @DamonHD in https://github.com/kokke/tiny-AES-c/issues/118
2018-12-03 10:27:52 +01:00
kokke 691aa01d4a
Update aes.c
Hopefully resolving https://github.com/kokke/tiny-AES-c/issues/118
2018-11-30 09:01:13 +01:00
kokke a525e5dbc9
Update aes.c 2018-05-29 13:42:26 +02:00
kokke 03be0caa72
Commenting reason for extra calls to xtime() 2018-05-02 15:23:47 +02:00
Nick Knudson 0849742803 CTR-only mode still needs functions to update counter (iv) 2018-01-31 16:31:15 -05:00
kokke 6dfe50fd61
Update aes.c 2017-12-13 10:29:33 +01:00
kokke 4346d1f006
Update aes.c 2017-12-06 02:30:35 +01:00
Stoian Ivanov c2f84e4f4c Merge remote-tracking branch 'upstr/master' into newapi 2017-12-05 14:54:55 +02:00
Stoian Ivanov 1e86fddb21 inplace api and test, Makefile update 2017-12-05 14:29:19 +02:00
Stoian Ivanov 88f258872c make thead safe via context pram; remove padding as non working; opitmise abit 2017-12-05 03:06:57 +02:00
kokke 0dbd87f84d
Update aes.c 2017-12-04 20:47:58 +01:00
kokke b976511e25
Update aes.c 2017-12-01 13:02:08 +01:00
kokke bacca1bd0c
Update aes.c 2017-12-01 12:11:03 +01:00
kokke 9acae40f3e
Update aes.c 2017-12-01 01:48:19 +01:00
kokke f92f371438
Update aes.c 2017-12-01 01:44:23 +01:00
kokke bfd5cc90bc
Update aes.c 2017-12-01 01:39:34 +01:00
kokke 75a0057562
Update aes.c 2017-12-01 01:20:01 +01:00
kokke 7a4af02bef
Update aes.c 2017-12-01 01:15:33 +01:00
kokke 4b91b70c35
adding CTR-mode 2017-12-01 01:00:07 +01:00
kokke 84468b291b
Update aes.c 2017-11-10 20:19:02 +01:00
kokke 1cd676c262
Update aes.c 2017-11-10 19:55:16 +01:00
kokke 49929c36ab
Update aes.c 2017-11-10 19:35:18 +01:00
kokke 268d40d97c Update aes.c 2017-07-13 10:38:03 +02:00
kokke a97324ad53 Update aes.c
cosmetic changes
2017-07-08 03:25:16 +02:00
kokke 24c8ab552c Update aes.c 2017-07-08 03:21:42 +02:00
kokke 2138696a3d Update aes.c 2017-07-08 03:19:45 +02:00
kokke 5517f34bf0 Update aes.c 2017-07-08 03:12:28 +02:00
Matteo Brichese 85278d01f6 removed unecessary blockcopy 2017-07-07 15:21:15 -07:00
Matteo Brichese 00f1f9218f removed unecessary blockcopy 2017-07-07 15:21:08 -07:00
Matteo Brichese c1c5fb1974 added AES192 and 256 2017-06-06 13:33:36 -07:00
Matteo Brichese 405f6e5eee Encrypt CBC works 2017-06-06 11:36:11 -07:00
Matteo Brichese 2089462272 adding aes256 aes192 options 2017-06-06 11:10:33 -07:00
Matteo Brichese c26fb6a5ec adding Key Expansion for AES192 and AES256 2017-06-05 17:07:34 -07:00
RaptorFactor 202c3b9b42 Make ECB API const-correct. 2017-01-03 16:41:41 -08:00
bitdust 27ce3c9308 Update aes.c
use uintptr_t instead of intptr_t to avoid warming C4018 in Virsual Studio.
warming C4018: 'expression' : signed/unsigned mismatch
https://msdn.microsoft.com/library/y92ktdf2.aspx
2015-05-08 18:18:01 +08:00
kokke 5c525a46a9 Update aes.c 2014-12-15 21:22:17 +01:00
kokke 9f0629463c Included CBC mode 2014-12-15 21:19:44 +01:00
kokke ef037167fd Update aes.c 2014-12-10 23:31:02 +01:00
mb300sd df5b2d578d No-copy operation 2014-12-09 15:07:12 -05:00
kokke 339c208685 Update aes.c 2014-12-08 09:54:58 +01:00