3956a847e6
Merge remote-tracking branch 'origin/pr/2092' into development
...
* origin/pr/2092:
Add more missing parentheses around macro parameters
Add further missing brackets around macro parameters
Adapt ChangeLog
Improve macro hygiene
2019-04-24 11:17:21 +01:00
1eeca41472
Improve macro hygiene
...
This commit improves hygiene and formatting of macro definitions
throughout the library. Specifically:
- It adds brackets around parameters to avoid unintended
interpretation of arguments, e.g. due to operator precedence.
- It adds uses of the `do { ... } while( 0 )` idiom for macros that
can be used as commands.
2019-02-19 17:59:00 +00:00
ee3c435063
Whitespace fix for ccm, gcm, and pkcs5
...
Fix whitespace mistakes in ccm, gcm, and pkcs5.
2019-01-10 03:17:34 -05:00
c79e92b802
Rename remaining test data
2019-01-10 03:14:00 -05:00
9aeea93cc3
Rename globals to avoid shadowing by various function arguments
...
It's easier and more telling to rename the globals used only for test,
rather than rename all the shadowing function arguments.
2019-01-10 03:14:00 -05:00
6adb0574ea
Improve details of CCM parameter validation and documentation
2018-12-19 19:02:39 +01:00
f712534801
Add missing validation code in CCM
2018-12-19 19:02:39 +01:00
ff8a0989c8
Allow empty arguments in some CCM functions' parameter validation
2018-12-19 19:02:39 +01:00
fd42d531ba
Explicitly allow NULL as an argument to mbedtls_ccm_free()
2018-12-19 19:02:39 +01:00
26d365eb54
Add parameter validation for CCM
2018-12-19 19:02:39 +01:00
1b9b217abf
enforce input and output of ccm selftest on stack
...
In `mbedtls_ccm_self_test()`, enforce input and output
buffers sent to the ccm API to be contigous and aligned,
by copying the test vectors to buffers on the stack.
2018-07-30 11:29:26 +03:00
4c579391b1
CCM*: Remove superfluous braces
2018-05-30 13:58:38 +01:00
997e85c049
CCM*: Remove nested if
2018-05-29 11:59:22 +01:00
b5734a28d9
CCM*: Add implementation
2018-05-29 11:59:22 +01:00
1f6301b3c8
Rename mbedtls_zeroize to mbedtls_platform_zeroize
2018-04-17 10:00:21 -05:00
e32df087fb
Remove individual copies of mbedtls_zeroize()
...
This commit removes all the static occurrencies of the function
mbedtls_zeroize() in each of the individual .c modules. Instead the
function has been moved to utils.h that is included in each of the
modules.
2018-04-17 09:19:05 -05:00
222e2ff421
Allow alternate core implementation of CCM
2017-04-04 11:37:15 +02:00
88ffc089bc
Adds casts to zeroize functions to allow building as C++
2016-05-23 14:29:32 +01:00
37ff14062e
Change main license to Apache 2.0
2015-09-04 14:21:07 +02:00
6fb8187279
Update date in copyright line
2015-07-28 17:11:58 +02:00
9de64f5af1
Fix MSVC warnings in library and programs
2015-07-01 16:56:08 +02:00
b8186a5e54
Rename len to bitlen in function parameters
...
Clarify a few comments too.
2015-06-18 14:58:58 +02:00
43b08574a6
Avoid memory leak with repeated [gc]ccm_setkey()
2015-05-27 17:23:30 +02:00
8473f87984
Rename cipher_init_ctx() to cipher_setup()
2015-05-14 21:58:34 +02:00
ccc302692a
Fix bug introduced when splitting init functions
2015-05-11 14:35:42 +02:00
6963ff0969
Split mbedtls_ccm_init() -> setkey()
2015-04-28 18:02:54 +02:00
2cf5a7c98e
The Great Renaming
...
A simple execution of tmp/invoke-rename.pl
2015-04-08 13:25:31 +02:00
7f8099773e
Rename include directory to mbedtls
2015-03-10 11:23:56 +00:00
fe44643b0e
Rename website and repository
2015-03-06 13:17:10 +00:00
00ab47026b
cleanup library and some basic tests. Includes, add guards to includes
2015-02-10 11:28:46 +00:00
860b51642d
Fix url again
2015-01-28 17:12:07 +00:00
085ab040aa
Fix website url to use https.
2015-01-23 11:06:27 +00:00
9698f5852c
Remove maintainer line.
2015-01-23 10:59:00 +00:00
19f6b5dfaa
Remove redundant "all rights reserved"
2015-01-23 10:54:00 +00:00
a658a4051b
Update copyright
2015-01-23 09:55:24 +00:00
967a2a5f8c
Change name to mbed TLS in the copyright notice
2015-01-22 14:28:16 +00:00
5b11d026cd
Fix dependencies and includes without FS_IO and PLATFORM_C
2014-07-10 15:27:10 +02:00
84bbeb58df
Adapt cipher and MD layer with _init() and _free()
2014-07-09 10:19:24 +02:00
3461772559
Introduce polarssl_zeroize() instead of memset() for zeroization
2014-06-14 16:46:03 +02:00
0f6b66dba1
CCM operations allow input == output
2014-05-14 14:10:35 +02:00
aed6065793
CCM source cosmetics/tune-ups
...
- source a bit shorter
- generated code slightly smaller
- preserving performance
2014-05-14 14:10:35 +02:00
ce77d55023
Implement ccm_auth_decrypt()
2014-05-07 12:13:13 +02:00
002323340a
Refactor to prepare for CCM decryption
2014-05-07 12:13:12 +02:00
637eb3d31d
Add ccm_encrypt_and_tag()
2014-05-07 12:13:12 +02:00
9fe0d13e8d
Add ccm_init/free()
2014-05-06 12:12:45 +02:00
a6916fada8
Add (placeholder) CCM module
2014-05-06 11:28:09 +02:00