adustm
2d259e0a6d
fix typo in directory name
2017-07-28 14:46:20 +01:00
adustm
a1810d4aec
Add AES HW encryption for NUCLEO_F756ZG in mbedtls
2017-07-28 14:46:20 +01:00
adustm
af8c6bd6a2
Move definitions in aes_alt.c + Factorize code
2017-07-14 15:13:29 +01:00
adustm
b7b9444f76
STM32L486RG/mbedtls: add aes hw acceleration
2017-07-14 15:13:29 +01:00
adbridge
7b33104d11
Re-add #define previously removed
2017-07-03 12:24:22 +01:00
adustm
431218e9d1
Check HASH is not busy before save/resteore context
2017-07-03 12:13:36 +01:00
adustm
09a50efd19
Handle context swapping + rename macro ST_SHA256_BLOCK_SIZE
...
Handle 64 bytes accumulation
2017-07-03 12:12:36 +01:00
adustm
600742b136
Remove trailing whitespace
2017-07-03 12:12:06 +01:00
adustm
a8ab0e4290
SHA256: get ready to return error codes
2017-07-03 12:11:41 +01:00
adustm
6d0903b6bb
Replace 64 by MBEDTLS_SHA256_BLOCK_SIZE
2017-07-03 12:10:45 +01:00
adustm
8dc7851916
Align SHA256 with MD5 and SHA1 implementation
...
This will solve Size <4 issues
2017-07-03 12:10:15 +01:00
adustm
2300386b84
NUCLEO_F429ZI/mbedtls: add SHA256 hw_acceleration
2017-07-03 12:09:14 +01:00
adustm
451eb33ec7
Check that the HASH is not busy before save and restore iHW registers
2017-07-03 11:46:56 +01:00
adustm
7e864de0cc
handle context swap + change macro name
2017-07-03 11:46:55 +01:00
adustm
9a8f5a7ef3
replace 64 by define
2017-07-03 11:46:55 +01:00
adustm
1bea47d976
Remove tabs, fix doxygen comments
2017-07-03 11:46:54 +01:00
adustm
95beb43bda
Rework SHA1 update for buffer <4 bytes management
2017-07-03 11:46:54 +01:00
adustm
f4287fd7db
Handle 64 bytes buffers
2017-07-03 11:46:54 +01:00
adustm
3d3affadd2
Move MBEDTLS_SHA1_C from mbedtls_device.h to targets.json
2017-07-03 11:46:53 +01:00
adustm
284b230cc6
Improve memory management
2017-07-03 11:46:53 +01:00
adustm
726c313d56
Remove unneeded function declarations + include file Move include platform from sha1_alt.h to sha1_alt.c
2017-07-03 11:46:53 +01:00
adustm
57996887da
Better explanation of the use of mbedtls_sha1_context fields
2017-07-03 11:46:53 +01:00
adustm
bc3bf9f3f4
use mbedtls_zeroize instead of memset(xxx,0,xxx)
2017-07-03 11:46:52 +01:00
adustm
fbab24db6b
NUCLEO_F429ZI/mbedtls: add SHA1 hw_acceleration
2017-07-03 11:46:52 +01:00
Hanno Becker
ddb7cef907
Update mbed TLS to version 2.5.0
2017-05-17 15:42:07 +01:00
Hanno Becker
e9e3040297
Update mbed TLS to version 2.5.0-rc1
2017-05-15 17:07:30 +01:00
Anna Bridge
e743a26f94
Merge pull request #3691 from adustm/STM_aes_f439zi
...
[TLS / hw acceleration] AES ECB for NUCLEO_F439ZI
2017-03-14 14:32:25 +00:00
Andres AG
1c8d7c1115
Update mbed TLS feature to mbedtls-2.4.2
2017-03-08 15:56:59 +00:00
adustm
5c858a456e
remove mbedtls_printf error notification
2017-02-28 18:07:20 +01:00
adustm
d73088a90e
Big commit after code review from andesag01
...
cleanup in include files (unrequired removed + other moved to aes_alt.h)
hcryp_aes moved to mbedtls_aes_context to allow multi instances
remove ctx->nr, ctx->buf
doxygen comments are removed (kept in .h file)
function _ALT are removed (full module _ALT)
handle error returned by HAL_CRYPxx functions
aes is symetric, remove the dupplicated set_key_enc and set_key_dec
buffer, and factorize the call to set_key function
2017-02-28 16:42:06 +01:00
adustm
fe1e7aac98
Better use of MBEDTLS_AES_ALT
...
removed from targets.json, added in mbedtls_device.h
remove function alternate defines (not used as we replace the full
module)
2017-02-28 16:42:03 +01:00
adustm
fa8f6e4a86
Add AES_CBC mode
2017-02-28 16:42:01 +01:00
adustm
35bf8e17e6
AES ECB for NUCLEO_F439ZI
...
+---------------------------+--------+--------+--------+
| test case | passed | failed | result |
+---------------------------+--------+--------+--------+
| mbedtls_aes_self_test | 1 | 0 | OK |
| mbedtls_entropy_self_test | 1 | 0 | OK |
| mbedtls_sha256_self_test | 1 | 0 | OK |
| mbedtls_sha512_self_test | 1 | 0 | OK |
+---------------------------+--------+--------+--------+
2017-02-28 16:41:16 +01:00
Janos Follath
e9144ad771
Apply new naming convention to mbed TLS macros
2016-11-18 15:01:01 +00:00
Janos Follath
9137574e4d
Move mbed TLS configuration symbol to macro section
...
The configuration option for the mbed TLS specific hardware acceleration
has to be in the macro section and not in the device capabilities
section in targets.json.
The option has also been renamed to better reflect its function.
2016-11-18 09:55:16 +00:00
Janos Follath
80aedd2f39
Move crypto hardware acceleration configuration
...
The crypto hardware acceleration might require defining a lot of mbed
TLS specific macros. Enumerating all of them in `targets.json` creates
too much noise, therefore we move it into a target specific mbed TLS
header.
The target with crypto hardware acceleration has to
- indicate its capability in `targets.json` by adding "CRYPTO"
to the "device_has" section
- has to define his crypto hardware acceleration related macros
in an `mbedtls_device.h` header
- place the `mbedtls_device.h` file in the
`features/mbedtls/targets/TARGET_XXXX`
directory specific to the target
2016-11-17 14:38:04 +00:00
Andres AG
509a72ca81
Add checks for NULL_ENTROPY and SSL_TLS in mbed OS
2016-10-20 17:07:32 +01:00
Andres AG
57814ddbbc
Update feature/mbedtls to version 2.4.0
2016-10-17 13:32:25 +01:00
Andres AG
2ff5400158
Update to mbed TLS release candidate
2016-10-14 09:03:05 +01:00
Andres AG
39c95e0e2f
Sync mbed TLS with development HEAD
...
Update the current version of mbed TLS with the development HEAD of the
mbed TLS project repository. This mostly includes the latest CMAC
feature. Also, update the version in the importer Makefile and
VERSION.txt with the hash of the mbed TLS commit that was sync'ed.
2016-10-06 16:29:41 +01:00
Andres AG
916ce43ffa
Fix mbedtls user config and null entropy
2016-10-05 11:04:35 +01:00
Andres AG
11ee1de620
Update feature/mbedtls with mbedtls' development HEAD
2016-09-28 09:26:02 +01:00
Andres AG
21a7b1de04
Modify mbedtls scripts to add config-no-entropy.h
2016-09-27 16:19:39 +01:00
Martin Kojtal
1b95c67dd2
mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
...
MBEDTLS_ENTROPY_HARDWARE_ALT will be defined via config in mbedtls,
the mbed wrapper should use DEVICE_TRNG.
2016-09-27 09:16:28 +01:00
Martin Kojtal
1f8da7da34
mbedtls - move TRNG mbed impl into platform folder
2016-09-27 09:14:42 +01:00
Martin Kojtal
ea1041ea36
HAL - RNG rename to TRNG
2016-09-27 09:13:59 +01:00
Martin Kojtal
e8ca16dde7
RNG - rename rng_get_numbers to rng_get_bytes
2016-09-27 08:51:49 +01:00
Martin Kojtal
ee344abd34
mbedtls - mbed wrapper rename to mbed_rng
2016-09-27 08:51:47 +01:00
Martin Kojtal
7d68492bef
mbedtls: add wrapper for mbed hw poll
...
This wrapper uses RNG HAL API
2016-09-27 08:51:34 +01:00
Sam Grove
4794bc87e3
Update mbed TLS to version 2.3.0
2016-07-23 00:13:43 -05:00