ccli8
77c53f8d06
Coordinate crypto interrupt handler among AES/PRNG
2018-01-12 15:01:46 +00:00
ccli8
d6987bb6be
Refine AES/DES alter. code
2018-01-12 15:01:46 +00:00
ccli8
a89cb2e5b9
Fix AES alter. CFB128 error
2018-01-12 15:01:45 +00:00
ccli8
9c52660e52
Optimize AES alter. code
2018-01-12 15:01:45 +00:00
ccli8
1f3565ec35
Guard from re-entry into crypto H/W
2018-01-12 15:01:45 +00:00
ccli8
41f4e1a12c
Coordinate crypto init among AES/DES/SHA/PRNG
...
Add counter to track crypto init among crypto sub-modules. It includes:
1. Enable crypto clock
2. Enable crypto interrupt
As counter gets zero, crypto clock is disabled to save power.
2018-01-12 15:01:45 +00:00
ccli8
5785ecfb76
Fix DES alter. DMA buffer could locate at unsupported region
2018-01-12 15:01:45 +00:00
ccli8
416c4fa7f6
Fix AES alter. DMA buffer could locate at unsupported region
2018-01-12 15:01:45 +00:00
ccli8
e60198e946
Refine AES alter. input/output data endianness
2018-01-12 15:01:45 +00:00
ccli8
bc366a1c31
Fix AES alter. DMA buffer check
2018-01-12 15:01:45 +00:00
ccli8
2ddc1410f0
Refine config check code
2018-01-12 15:01:45 +00:00
ccli8
60cbdac383
Remove redundant S/W DES code
...
This S/W DES code was to test DES H/W port before.
2018-01-12 15:01:45 +00:00
ccli8
90eb34b4de
Refine DES alter. code
2018-01-12 15:01:45 +00:00
ccli8
f4e0228ffe
Add comment for DES alter. context
2018-01-12 15:01:45 +00:00
ccli8
ce2e1ea169
Add comment for AES alter. context
2018-01-12 15:01:45 +00:00
ccli8
743930978c
Refine AES alter. code with IV endianness
2018-01-12 15:01:45 +00:00
ccli8
3aae8ad4a3
Rework AES alter. CFB128
...
1. Fix bug on non-block aligned data size
2. More concise
2018-01-12 15:01:45 +00:00
ccli8
2642be273a
Refine AES alter. DMA buffer code
2018-01-12 15:01:45 +00:00
ccli8
aca8ae7fc4
Refine AES alter. code
2018-01-12 15:01:45 +00:00
ccli8
cfbbd67a73
Support multiple contexts in AES alter. with context save & restore
2018-01-12 15:01:45 +00:00
ccli8
325c23e073
Fix AES DMA buffer cannot locate at ROM region
2018-01-12 15:01:45 +00:00
ccli8
796d1c696b
Remove AES alter. dead code
2018-01-12 15:01:45 +00:00
ccli8
5cd3b98cf1
Fix AES alternative function not thread-safe
2018-01-12 15:01:45 +00:00
ccli8
cb8b449c46
Refine coding style
2018-01-12 15:01:45 +00:00
ccli8
646136c59f
Refine coding style
2018-01-12 15:01:44 +00:00
ccli8
02ab1a05b0
Fix DES alternative function not thread-safe
2018-01-12 15:01:44 +00:00
ccli8
1b82cbdc91
Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-12 15:01:44 +00:00
ccli8
70c50f2cb1
Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-12 15:01:44 +00:00
ccli8
ca8ac443c6
Remove debug code in AES alternative
2018-01-12 15:01:44 +00:00
ccli8
e7d85cd56c
Fix DES alternative function not thread-safe
2018-01-12 15:01:44 +00:00
ccli8
d1dab259ab
Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-12 15:01:44 +00:00
ccli8
d174e850ca
Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-12 15:01:44 +00:00
ccli8
5894775398
Remove debug code in AES alternative
2018-01-12 15:01:44 +00:00
Ashok Rao
de0db52903
Adding license info
2018-01-12 15:01:44 +00:00
Ashok Rao
9c07a11a1b
Add new line to EOF
2018-01-12 15:01:44 +00:00
Ashok Rao
0c132c57de
Fixing indentation
2018-01-12 15:01:44 +00:00
Ashok Rao
2ead50c325
Adding MTB ublox ODIN W2
2018-01-12 15:01:44 +00:00
jeromecoutant
8a2a182bfe
lp_timer test : add a minimum delta value
2018-01-12 15:01:44 +00:00
Dave Wu
37cc8a2876
Cleared data structures in analogin_init();
...
Set buffer for 1 sample in analogin_read_u16. Before it assumes the
buffer is set outside by the higher layer. Now it's temporarily
located on the stack since only the ADC value is returned.
2018-01-12 15:01:44 +00:00
bcostm
eaf7077a9c
STM32F3: Remove flash functions doc + typos
2018-01-12 15:01:44 +00:00
bcostm
5dbc668298
STM32F3: reset PGERR flash flag
2018-01-12 15:01:43 +00:00
bcostm
349056ca48
STM32F3: flash_api typos
2018-01-12 15:01:43 +00:00
bcostm
a9a4cdd64d
STM32F303xE: add FLASH support in targets.json
2018-01-12 15:01:43 +00:00
bcostm
3d90822ed2
STM32F3: add Flash api
2018-01-12 15:01:43 +00:00
Maciej Bocianski
bb2028828f
mem_trace tests refactoring
2018-01-12 15:01:43 +00:00
Andrzej Puzdrowski
5982972ba5
Enable tickless for nRF52840
2018-01-12 15:01:43 +00:00
Andrzej Puzdrowski
db31ab08e4
Implementation of critical section primitives which can be called from diferent contexts.
...
Orginal nordic critical primitives must been called in pairs
from exacly the same function. As mbed hal call it in separate
methods, so they are not suitable here.
2018-01-12 15:01:43 +00:00
Andrzej Puzdrowski
22a7801c7e
current critical section implementation makes possible that interrupt signals are lost. It was observed at last for tests-api-spi ci-test-shield's test.
...
This patch introduce usage of sdk5 origin implementation in which
sd_nvic_critical_region_enter/exit is calling each time critical region
is enter/exit. This fixes the issue.
2018-01-12 15:01:43 +00:00
jeromecoutant
02b5e52b23
STM32 uart: update after code review
2018-01-12 15:01:43 +00:00
jeromecoutant
fba156a35a
STM32 LPUART : update clock source depending on expected baudrate
2018-01-12 15:01:43 +00:00