adustm
cba538854d
Fix MD5 link issue
2018-01-30 09:41:23 +01:00
adustm
3250e2d6d4
Fix #5079 . Add the support of call to mbedtls_xxx_finish even if mbedtls_xxx_udate
...
was not called since mbedtls_xxx_start
2018-01-30 09:41:23 +01:00
Amanda Butler
e6949db802
bd: Copy edit BlockDevices
...
Copy edit SlicingBlockDevice.h
Copy edit ReadOnlyBlockDevice.h
Copy edit ProfilingBlockDevice.h
Copy edit ObservingBlockDevice.h
Copy edit MBRBlockDevice.h
Copy edit ExhaustibleBlockDevice.h
Copy edit ChainingBlockDevice.h
Copy edit BlockDevice.h
Copy edit files for active voice and consistent tense.
2018-01-29 18:45:36 -06:00
paul-szczepanek-arm
faf134ae60
move helper funcitons under their own heading
2018-01-29 17:16:47 -06:00
paul-szczepanek-arm
9786244386
removed redundant const
2018-01-29 16:00:53 -06:00
Christopher Haster
88aad81345
bd: Adopted the get_erase_value function in the util block devices
2018-01-29 15:33:02 -06:00
Christopher Haster
7707c8b8b8
bd: Added get_erase_value function to the block device API
...
Default implementation returns -1 and is backwards compatible
2018-01-29 15:31:07 -06:00
paul-szczepanek-arm
d0c4186b9e
moved fucntion impl to match position in header
2018-01-29 21:20:15 +00:00
paul-szczepanek-arm
eb899bc798
split identity away from meta data and csrk, moved privacy feature from db to security manager
2018-01-29 21:10:08 +00:00
paul-szczepanek-arm
f4d29bbef6
clear up private address resolution
2018-01-29 19:22:08 +00:00
paul-szczepanek-arm
647aa1eebe
split security manager into a header and moved types to common types
...
plus a bit of extra doxygen comments
2018-01-29 17:57:00 +00:00
Cruz Monrreal
49cdb0bb07
Merge pull request #5945 from kjbracey-arm/dns_multiple
...
Correct return value of nsapi_dns_query_multiple
2018-01-29 10:09:42 -06:00
paul-szczepanek-arm
ed0722c303
upgraded oob data to octet type
2018-01-28 10:08:15 +00:00
paul-szczepanek-arm
724aef96a3
moved types to common header
2018-01-28 07:07:54 +00:00
Wilfried Chauveau
e6b19d838c
add support for STM32L443RC & WISE-1510
2018-01-26 17:06:39 +00:00
Cruz Monrreal
fe87499af8
Merge pull request #5874 from c1728p9/usb_fixes_and_improvements
...
USB fixes and improvements
2018-01-26 10:37:13 -06:00
Kevin Bracey
15a3922f58
Correct return value of nsapi_dns_query_multiple
...
Documentation states that nsapi_dns_query_multiple returns the number of
addresses found on success - it was returning 0.
Overloads using SocketAddress are relying on the return value, meaning
those calls didn't work at all.
Fixes #5921 .
2018-01-26 14:08:29 +02:00
Christopher Haster
6e5f2439a3
littlefs: Adopted the block device sync function
...
Required to garuntee that data is flushed all the way down to the disk
level when a file is synced or closed.
2018-01-24 18:07:47 -06:00
Christopher Haster
a4f8af9d5b
bd: Adopted the sync function in the util block devices
2018-01-24 18:07:35 -06:00
Christopher Haster
3f5d618c89
bd: Add sync function to the block device API
...
/** Ensure data on storage is in sync with the driver
*
* @return 0 on success or a negative error code on failure
*/
virtual int sync()
2018-01-24 17:58:20 -06:00
bcostm
352ac7a2be
Use RawSerial in MBED_11 test
2018-01-24 14:45:18 +01:00
paul-szczepanek-arm
1cc5312d1e
octet type for keys
2018-01-24 10:22:53 +00:00
Cruz Monrreal
8e683d5f1d
Merge pull request #5864 from JaniSuonpera/CoAP_v4.0.11
...
CoAP v4.1.1
2018-01-23 11:31:39 -06:00
paul-szczepanek-arm
38f8a5b8d5
separate live state from stored state in entry
2018-01-23 17:01:44 +00:00
paul-szczepanek-arm
8ef3311be0
naive memory implementation for verification purposes
2018-01-23 16:01:54 +00:00
paul-szczepanek-arm
c476fceba3
correct naming for private members
2018-01-23 15:36:57 +00:00
paul-szczepanek-arm
92965baaa8
removed redundant mitm field
2018-01-23 12:27:03 +00:00
paul-szczepanek-arm
56ea4202d7
read mitm of the csrk key not pairing
2018-01-23 12:21:32 +00:00
paul-szczepanek-arm
bc1e809ca3
keeping state of connection, storing mitm quality of keys
2018-01-23 12:20:12 +00:00
paul-szczepanek-arm
f635555a74
refresh not needed, done through requesting encryption on encrypted link
2018-01-23 12:19:38 +00:00
paul-szczepanek-arm
f1044fe2b6
internal function naming
2018-01-23 11:25:28 +00:00
paul-szczepanek-arm
4aa7158c4b
temporary code for use during verification before we integrate with gap
2018-01-23 10:47:16 +00:00
paul-szczepanek-arm
10b5e648fd
slave request handling
2018-01-22 21:01:05 +00:00
paul-szczepanek-arm
8b84b93b2c
fix to apply defaults for pairing response
2018-01-22 17:32:13 +00:00
paul-szczepanek-arm
2b7db78d7b
pairing through a single function to keep settings
2018-01-22 17:27:01 +00:00
paul-szczepanek-arm
b4e85b3d06
moved db into its own file
2018-01-22 16:50:15 +00:00
paul-szczepanek-arm
2d8451f770
block legacy pairing when requested
2018-01-22 16:39:41 +00:00
Cruz Monrreal
5af1d8fca6
Merge pull request #5800 from abougouffa/feature_unsupported_usbhost
...
Some enhancements for the USBHost feature and small bug fix
2018-01-22 10:26:07 -06:00
Cruz Monrreal
6a708d1cf8
Merge pull request #5878 from c1728p9/lpc_usb_stability_fixes
...
LPC USB stability fixes
2018-01-22 10:25:13 -06:00
Cruz Monrreal
ff08b10a90
Merge pull request #5877 from c1728p9/kinetis_usb_stability_fixes
...
Kinetis USB improvements and fixes
2018-01-22 10:24:23 -06:00
paul-szczepanek-arm
305975b15a
hint role reversal, set the correct ltk keys
2018-01-22 16:21:30 +00:00
paul-szczepanek-arm
69aac8abee
const fix
2018-01-22 14:55:49 +00:00
paul-szczepanek-arm
2ae05ea6aa
enabling signing
2018-01-22 14:54:17 +00:00
paul-szczepanek-arm
1208dc7c34
readability
2018-01-22 14:37:34 +00:00
paul-szczepanek-arm
533f6a464a
restructure cases to avoid warnings
2018-01-22 14:35:02 +00:00
paul-szczepanek-arm
4c56d4c90b
returning ref to array for csrk
2018-01-22 14:30:22 +00:00
paul-szczepanek-arm
cba92fe82c
db changes to suport peer and local keys
2018-01-22 14:11:22 +00:00
paul-szczepanek-arm
5e0ed3db01
pul events to retrieve local ltk edvi rand
2018-01-22 13:50:30 +00:00
paul-szczepanek-arm
d1c29faaa8
added slave security request
2018-01-22 11:49:42 +00:00
paul-szczepanek-arm
3300395468
missing init, removed redeclaration
2018-01-22 09:57:35 +00:00
Jani Suonpera
e0e3dbb7f8
CHANGELOG updated
2018-01-22 10:53:14 +02:00
ccli8
17280372a7
[M487] Refine code in ECP alter.
...
1. Add comment for unnecessary parameter 'n' in mbedtls_internal_run_eccop
2. Fix warning message with goto which causes `bypass initialization`
3. Fix comment
2018-01-22 11:21:19 +08:00
paul-szczepanek-arm
d880f6238d
encryption needs ltk rand and ediv
2018-01-21 22:57:05 +00:00
paul-szczepanek-arm
e301f7a1c3
removed redundant checks
2018-01-21 21:43:02 +00:00
paul-szczepanek-arm
9be7dbef78
mitm quality added
2018-01-21 19:54:41 +00:00
paul-szczepanek-arm
0ef6740fc3
line wrap
2018-01-21 19:41:18 +00:00
paul-szczepanek-arm
e2a4c08d1f
set link security and set link ecryption added
2018-01-21 19:38:36 +00:00
paul-szczepanek-arm
4820d64b9a
moved signing to matching positin in file
2018-01-21 18:47:06 +00:00
paul-szczepanek-arm
b20a49f7a3
only one key distribution settings
2018-01-21 18:45:31 +00:00
paul-szczepanek-arm
7f90c7c889
signing enabling
2018-01-21 18:26:35 +00:00
Vincent Coubard
7b169997c8
BLE Cordio: partial implementation of set ltk.
2018-01-19 18:49:39 +00:00
Vincent Coubard
a849f7f433
BLE Cordio: Enable handling of security.
2018-01-19 18:42:59 +00:00
paul-szczepanek-arm
467b36eaaf
get link security no longer needed in generic
2018-01-19 17:57:55 +00:00
paul-szczepanek-arm
f18af9f54d
retrieving signing key
2018-01-19 17:55:53 +00:00
Cruz Monrreal
f4aba252de
Merge pull request #5836 from artokin/thread_commissioning_fix
...
Thread commissioning fix
2018-01-19 11:29:58 -06:00
paul-szczepanek-arm
ad8dd5fb2c
fix wrap
2018-01-19 16:53:10 +00:00
paul-szczepanek-arm
0367cebaa2
vincent style wrapping
2018-01-19 16:52:17 +00:00
paul-szczepanek-arm
cb660985a2
get rid of all the virtual warnings and fix enum types
2018-01-19 16:41:18 +00:00
paul-szczepanek-arm
e100f7c01f
returning csrk key, init distribution list
2018-01-19 16:20:37 +00:00
paul-szczepanek-arm
9fda5550db
missing conn handle
2018-01-19 16:19:33 +00:00
paul-szczepanek-arm
3074d12ff1
security mode split into encryption and signing key
2018-01-19 15:56:18 +00:00
paul-szczepanek-arm
ebe2439ff7
move deprecated funcs down, add replacement for encryption status
2018-01-19 14:58:07 +00:00
Vincent Coubard
818ec8c8ec
BLE SM: Align CordioPalSecurityManager with PalSecurityManager and fill the blanks
2018-01-19 14:36:55 +00:00
Vincent Coubard
4fcb304f27
BLE SM: Fix rand end ediv length
2018-01-19 14:36:54 +00:00
paul-szczepanek-arm
49e1fc3932
moving pairing to its own group to match the other layers
2018-01-19 14:24:28 +00:00
Vincent Coubard
888a050381
BLE SM: Slight API adjustements and docs
2018-01-19 12:22:51 +00:00
paul-szczepanek-arm
4fb9593f9f
removed todo
2018-01-19 12:13:09 +00:00
paul-szczepanek-arm
5fcf2a6cfb
Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm
2018-01-19 11:40:29 +00:00
paul-szczepanek-arm
9e3797cb3c
timeout pal funcs combined into single result on api side
2018-01-19 11:38:42 +00:00
Vincent Coubard
44a366d103
BLE SM: Fix compilation errors
2018-01-19 11:30:27 +00:00
paul-szczepanek-arm
8b36d5ed65
fixed non-matching types
2018-01-19 10:44:48 +00:00
paul-szczepanek-arm
c3b434b3a2
fixed pal name of oob request
2018-01-19 10:40:59 +00:00
paul-szczepanek-arm
b60a464785
constness and refs fixes
2018-01-19 10:38:27 +00:00
paul-szczepanek-arm
ab056aa17e
set io caps, removed redundant params from pairing request
2018-01-19 10:30:38 +00:00
paul-szczepanek-arm
081b99e80a
link security reading from db to determine stats
2018-01-18 23:33:19 +00:00
Cruz Monrreal
c59c400093
Merge pull request #5832 from geky/fix-truncate-zero
...
littlefs: Fix file truncation without writes
2018-01-18 14:25:47 -06:00
Cruz Monrreal
698c7d9e8c
Merge pull request #5819 from geky/test-common
...
Add COMMON folder for tests
2018-01-18 14:20:23 -06:00
paul-szczepanek-arm
2fe405a2a8
propagated changes from pal to api and generic
2018-01-18 20:14:35 +00:00
paul-szczepanek-arm
9c1444f49c
dropped redundant passkey num class
2018-01-18 20:13:49 +00:00
Cruz Monrreal
b8abbab38b
Merge pull request #5761 from geky/littlefs-fix-lookahead-rewind
...
littlefs: Fix issue with immediate exhaustion and small unaligned storage
2018-01-18 13:01:25 -06:00
paul-szczepanek-arm
021a1fdf76
io caps and key size now stored by stack, secured cahgned to encrypted, moved passkey classes to pal
2018-01-18 17:40:08 +00:00
Cruz Monrreal
6b034fbc08
Merge pull request #5870 from kjbracey-arm/multicast_ns
...
NSAPI: Add Nanostack multicast membership support
2018-01-18 11:37:24 -06:00
paul-szczepanek-arm
82c0847ab8
missed one pointer to pointer
2018-01-18 17:24:10 +00:00
paul-szczepanek-arm
b88a2700de
fixed the pointers to pointers
2018-01-18 17:23:31 +00:00
paul-szczepanek-arm
b63930f53f
fixed refs to arrays
2018-01-18 17:21:59 +00:00
paul-szczepanek-arm
3f26435ad9
pariring typo
2018-01-18 17:20:43 +00:00
paul-szczepanek-arm
779d6eb7ae
updated old key_ditribution type and fixed refs to pointers
2018-01-18 17:19:59 +00:00
paul-szczepanek-arm
dee47771fd
updated implementations with new classes for auth and distribution masks
2018-01-18 15:42:50 +00:00
paul-szczepanek-arm
73e5f2d655
removed old events that are now only in legacy handling
2018-01-18 14:38:25 +00:00
Jani Suonpera
5d10878b8f
Update CoAP to 4.1.1
...
Combined CoAP changes 4.0.11 and 4.1.0
Fixed regression with 4.0.11
2018-01-18 16:03:38 +02:00
Antti Yli-Tokola
93b3cfc288
mbed-coap update to version 4.1.0
...
- New API to control whether coap itself sends a next GET(block2) request or not
- Fixes error IOTCLT-2203 mbed-coap does not handle PUT or POST if they indicate a smaller block size preference
2018-01-18 16:00:25 +02:00
paul-szczepanek-arm
01cdceb97f
key distribution now a class
2018-01-18 12:08:33 +00:00
Paul Szczepanek
5a056a1351
Merge pull request #7 from pan-/palsm-cordio-implementation
...
Palsm cordio and Nordic implementation
2018-01-18 10:20:32 +00:00
Russ Butler
6fe0aa0074
Fix LPC17XX and LPC40XX USB data throttling
...
Only clear the USB read buffer when endpointRead is called. This
allows data to be read with endpointReadResult without also allowing
USB to transfer more data. Instead additional data is transferred explicitly
with a call to endpointRead.
2018-01-17 21:50:20 -06:00
Russ Butler
eda332cbf8
Fix LPC17XX and LPC40XX USB race condition
...
If a SETUP packet arrives shortly after an IN then the packets will be
processed in the wrong order - SETUP first then IN. This causes
the subsequent control transfer to fail. Fix this problem by processing
IN packets before processing SETUP packets.
2018-01-17 21:50:18 -06:00
Russ Butler
352ff8df14
Kinetis USB improvements and fixes
...
Make the following improvements and fixes:
1.
Update the Kinetis USB driver so that endpointReadResult only reads the
result of the last read and does not trigger a new read. Instead
move the code to trigger new reads into endpointRead.
2.
Fix the race condition in controlIn caused by a call to
EP0read() followed immediately by EP0readStage(). This is done by
setting up to read the next setup packet (ignoring the status stage)
in endpointReadResult rather than in EP0readStage. This makes the
function EP0readStage unnecissary.
3.
Remove the Kinetis workaround in controlOut in USBDevice.cpp since
point 2 fixes this bug. For more info on this see the PR which
added this workaround - https://github.com/ARMmbed/mbed-os/pull/414
2018-01-17 20:58:16 -06:00
Russ Butler
beaac1525e
Fix clearing of ISTAT in Kinetis USB
...
The ISTAT register is write 1 to clear. Because of this ORing this
register with itself fill clear all bits that are set. This patch
updates the code to use plain assignment so only desired
bit is cleared.
2018-01-17 20:54:08 -06:00
Russ Butler
48cf4d85d1
Remove use of deprecated attach in USB
...
Attach callbacks with the assignment operator rather than with the
deprecated attach function. This fixes deprecation warnings.
This patch also adds the ability to attach a Callback directly.
2018-01-17 20:54:05 -06:00
Russ Butler
6decbedbb8
Fix local static initialization in USB
...
The local static initialization in USB was causing multiple problems:
-Configurable descriptor values are set only once
-USB descriptor initialization causes a trap in debug builds since
this is acquiring a mutex in an interrupt handler
-Extra ram used since all descriptors are in RAM
This patch fixes these problems by making fixed descriptors
static const so they are stored in flash and never need to be
initialized and by making descriptors that do change a member
of the class so they are always initialized when requested
rather than once though lazy static local initialization.
2018-01-17 20:53:57 -06:00
paul-szczepanek-arm
25107b1ad8
todo
2018-01-17 22:19:45 +00:00
paul-szczepanek-arm
8db6427fde
use common io caps type
2018-01-17 21:40:06 +00:00
paul-szczepanek-arm
b00b746aa0
removed old type
2018-01-17 21:27:06 +00:00
paul-szczepanek-arm
2f04aece23
shared types in common header, connected up the events in handlers
2018-01-17 21:22:48 +00:00
Vincent Coubard
743e57ffaa
Nordic BLE: Draft SM event handler.
2018-01-17 18:37:48 +00:00
Vincent Coubard
7e37cc739f
Nordic BLE: SM pal function draft (legacy pairing)
2018-01-17 18:37:48 +00:00
Vincent Coubard
5277f5a0fd
BLE: Fix signature of get_secure_connections_support in implementations.
2018-01-17 18:37:48 +00:00
Vincent Coubard
527a31663c
BLE - Nordic: Add Skeleton for the security manager
2018-01-17 18:37:48 +00:00
Vincent Coubard
ffb59eecb8
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-17 18:37:47 +00:00
paul-szczepanek-arm
2fb67d2c7d
authentication mask now a class, pairing and authenticating
2018-01-17 15:39:29 +00:00
paul-szczepanek-arm
49df59ebc1
deref pointer
2018-01-17 13:26:37 +00:00
paul-szczepanek-arm
42eeacbe7c
remove redundant func
2018-01-17 13:15:15 +00:00
Jani Suonpera
fe80b6751a
Update CoAP to 4.0.11
...
This PR implement https://tools.ietf.org/html/rfc7959#section-2.5
"The error code 4.13 (Request Entity Too Large) can be returned at any
time by a server that does not currently have the resources to store
blocks for a block-wise request payload transfer that it would intend
to implement in an atomic fashion. (Note that a 4.13 response to a
request that does not employ Block1 is a hint for the client to try
sending Block1, and a 4.13 response with a smaller SZX in its Block1
Option than requested is a hint to try a smaller SZX.)
2018-01-17 14:49:46 +02:00
paul-szczepanek-arm
8197f09bd5
acoid creattion of passkey object to do the conversion
2018-01-17 12:38:35 +00:00
Kevin Bracey
268a07db37
NSAPI: Add Nanostack multicast membership support
...
Add support for recently introduced NSAPI generic socket options to
control group membership. Previously applications using Nanostack would
have had to use Nanostack's native socket options.
2018-01-17 14:30:45 +02:00
paul-szczepanek-arm
1a7e3faa18
fixed passkey classes
2018-01-17 12:28:48 +00:00
paul-szczepanek-arm
6420465c29
fix func calls args
2018-01-17 11:40:32 +00:00
paul-szczepanek-arm
a3cf83ac02
key distribution
2018-01-17 11:38:36 +00:00
Vincent Coubard
e2a2582549
BLE: Fix inclusion of BLE.h (case)
2018-01-17 11:31:50 +00:00
paul-szczepanek-arm
44f2f7b9d7
expose get number to avoid implicit casts for clarity
2018-01-17 11:25:32 +00:00
paul-szczepanek-arm
1bf0d7b921
display passkey handling, added null check to passkey contructor
2018-01-17 11:09:54 +00:00
paul-szczepanek-arm
00b1b17e62
removed broken assignment operator
2018-01-17 11:04:37 +00:00
paul-szczepanek-arm
f8c9fe7329
get sc support in pal to match api
2018-01-17 10:52:24 +00:00
paul-szczepanek-arm
d6a3347443
default state for legeacy pairing alllowed, removed obsolete code
2018-01-17 10:49:35 +00:00
paul-szczepanek-arm
9c6f57a733
name clash fixed
2018-01-17 10:48:07 +00:00
paul-szczepanek-arm
943206dd07
db restoring, legacy pairing disallowing, removed set SC support
2018-01-17 10:46:56 +00:00
paul-szczepanek-arm
11874aac3b
whitelist generations needs to be async
2018-01-17 10:30:34 +00:00
Cruz Monrreal
25aa0e6d37
Merge pull request #5846 from geky/fix-block-addr-overflow
...
littlefs: Fix block addr overflow
2018-01-16 15:53:30 -06:00
paul-szczepanek-arm
dcce428c40
conversion of passkeys, uniform calls
2018-01-16 19:39:25 +00:00
paul-szczepanek-arm
c03c7fc587
Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm
2018-01-16 19:38:44 +00:00
Cruz Monrreal
671c2d7e90
Merge pull request #5346 from scartmell-arm/feature-hal-spec-critical-section
...
Add Critical Section HAL API specification
2018-01-16 12:49:38 -06:00
paul-szczepanek-arm
53f0b6a187
keypress notification setting
2018-01-16 18:16:15 +00:00
Vincent Coubard
9bd0fa5708
BLE Cordio: Fix call to SafeEnum<>::value()
2018-01-16 18:11:38 +00:00
Vincent Coubard
e4b5681563
Cordio: Add SecurityManager singleton
2018-01-16 18:09:35 +00:00
Vincent Coubard
c3c24d8641
Cordio: Implementation of base functions necessary for legacy pairing.
2018-01-16 18:04:40 +00:00
Vincent Coubard
0cd4f93041
Add skeleton of the PalSecurityManager for the Cordio Stack.
2018-01-16 17:19:26 +00:00
Vincent Coubard
6aa3d35d82
Set virtual specifier to on_keys_distributed .
2018-01-16 17:18:49 +00:00
paul-szczepanek-arm
83d582827d
legacy pairing support call in api
2018-01-16 14:48:08 +00:00
paul-szczepanek-arm
e02ae313ac
added on_ prefixes, added split key distribution
2018-01-16 12:46:59 +00:00
paul-szczepanek-arm
f9ed3b2456
passkey types fixed
2018-01-16 12:43:25 +00:00
Paul Szczepanek
cc41857ab6
Merge pull request #3 from pan-/palsm-interface-improvement
...
Palsm interface improvement
2018-01-16 12:38:27 +00:00
paul-szczepanek-arm
f93ed1087d
split keys dsitribution, unirm on_ prefix, docs
2018-01-16 12:22:12 +00:00
Vincent Coubard
f71490b59b
Merge with palsm.
2018-01-16 12:19:41 +00:00
Vincent Coubard
75c7460575
Remove setPinCode function (not needed) and oob related functions.
2018-01-16 12:13:14 +00:00
Vincent Coubard
323bae44e1
Fixe compilation errors
2018-01-16 12:12:30 +00:00
Vincent Coubard
4df41f3ee8
Add mention of function that sets a default passkey.
2018-01-16 12:11:04 +00:00
paul-szczepanek-arm
f33d93345b
random data request
2018-01-16 11:50:49 +00:00
Vincent Coubard
9d08b2ddb3
Fixes:
...
* replace invalid using statement by typedef
* replace SecurityIOCapabilities_t by io_capability_t in send_pairing_response
* fix failure type in cancel_pairing
2018-01-16 11:29:38 +00:00
paul-szczepanek-arm
8e89dfbbfd
redundant types removed
2018-01-16 11:23:36 +00:00
Vincent Coubard
aede2a5680
Move ::SecurityManagerEventHandler and ::LegacySecurityManagerEventHandler into ::SecurityManager .
...
Fixes access right and compilation error.
2018-01-16 11:23:33 +00:00
paul-szczepanek-arm
4d3a4c530d
removed bredr oob
2018-01-16 11:21:45 +00:00
paul-szczepanek-arm
daab0b4fe1
fix error type name and unified connection handle name
2018-01-16 11:15:39 +00:00
paul-szczepanek-arm
52669fff98
match accept pairing with request pairing
2018-01-16 11:10:03 +00:00
Vincent Coubard
d3ca4a9cb3
Merge branch 'palsm' into palsm-interface-improvement
2018-01-16 10:23:45 +00:00
paul-szczepanek-arm
b95943b28e
added more missing implementations for generic
...
removed virtual keyword since this is implementation
2018-01-15 22:32:57 +00:00
paul-szczepanek-arm
4dd5e7d124
match generic sm order with the rest, added missing set secure funcs
2018-01-15 22:17:05 +00:00
paul-szczepanek-arm
a5d98d9c66
rearrange security manager so it matches pal, insert missing paring funcs
2018-01-15 22:05:44 +00:00
paul-szczepanek-arm
585f60d1fc
missing irk added, authorisation for pairing optional, minor cleanup of names
2018-01-15 21:46:02 +00:00
paul-szczepanek-arm
c86d13a7cc
removed redundant param from pair req
2018-01-15 21:44:54 +00:00
paul-szczepanek-arm
b818b87965
remove redundant pal api calls
2018-01-15 20:22:13 +00:00
Vincent Coubard
e78840427a
Add few new types.
...
Remove c192, r192, c256 and r256 references.
Refactor function names
2018-01-15 19:42:32 +00:00
paul-szczepanek-arm
92a83cf526
generic security manager implements the pal handler, added first db entry handler
2018-01-15 19:02:53 +00:00
paul-szczepanek-arm
f308702b1d
split security entry
2018-01-15 18:14:39 +00:00
Martin Kojtal
7be79f93fe
Merge pull request #5727 from dschuler/nrf52pf
...
Add presentation format descriptor support for nRF5x
2018-01-15 15:43:21 +00:00
Martin Kojtal
663a6d84e3
Merge pull request #5623 from SeppoTakalo/clarify_socket_docs
...
Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation.
2018-01-15 15:29:28 +00:00
Martin Kojtal
41be3727fc
Merge pull request #5731 from terhei/master
...
mesh-api documentation removal
2018-01-15 15:26:55 +00:00
Martin Kojtal
2d83463f9c
Merge pull request #5813 from TomoYamanaka/master
...
Revise the structure in RZ_A1 related directory
2018-01-15 15:23:52 +00:00
Martin Kojtal
8c78649078
Merge pull request #5829 from deepikabhavnani/fat_issue_5780_3
...
Fix: Sector/Size overflow from uint32_t
2018-01-15 15:22:11 +00:00
Vincent Coubard
03f07bb7ce
Refactor resolving list management.
...
Use address type from gap rather than BLEProtocol::AddressBytes_t .
2018-01-15 15:05:50 +00:00
Vincent Coubard
81904fd867
Remove bonded list storage from the adaptation layer.
...
Such processing should be handled at the upper layer.
Initiating encryption of a given connection should be made with the start
encryption command. This command accepts the parameters Rand, EDIV and
LTK.
A request of encryption request generate an LTK request event that is
forwarded to the upper layer which then reply with the LTK presents in the
Security DB or reject the request.
2018-01-15 14:36:32 +00:00
Vincent Coubard
be664d1c33
Remove whitelist management: already present in the gap addaptation layer.
2018-01-15 14:32:12 +00:00
Vincent Coubard
1ee56f6b83
Convert SecurityManagerEventHandler into a pure interface.
...
Convert most functions of SecurityManager into virtual pure functions.
Protect access to the get_event_handler function and remove function set_app_event_handler.
2018-01-15 14:25:27 +00:00
paul-szczepanek-arm
2f49b66c52
callbacks allow updates
2018-01-15 11:45:52 +00:00
paul-szczepanek-arm
145fcc5791
security db iface draft
2018-01-15 08:31:33 +00:00
Daniel Schuler
271b09cda6
Add presentation format descriptor support for NRF52
2018-01-13 15:49:40 -08:00
Christopher Haster
44e2ca44a8
littlefs: Fix block addr overflow
...
deepikabhavnani did the hard work in tracking this issue down. Block
addresses are not cast to the correct type until after multiplying to
convert to byte addresses. This results in an overflow when the storage
is larger than 4 GB.
2018-01-12 14:44:44 -06:00
deepikabhavnani
c86d757267
Fix: Sector/Size overflow from uint32_t
...
FATFilesystem declares sector count and size as uint32_t and block
device class arguments are addr and size which is uint64_t
While passing arguments to program/read/write API's of block device,
multiplication of uint32_t*uint32_t was not typecasted properly to
uint64_t which resulted in MSB truncation.
Eg. If block 0x800000 is accessed with block size 0x200, addr to be
passed (0x800000*0x200)0x100000000, but actual address passed was 0x0
which resulted in over-writting the root directory, and hence corrupted
filesystem
2018-01-12 11:12:34 -06:00
paul-szczepanek-arm
bbe408e82b
naming fix
2018-01-12 15:55:26 +00:00
paul-szczepanek-arm
5474083469
use direct params not struct for pairing
2018-01-12 15:51:24 +00:00
paul-szczepanek-arm
af4bdc7562
typo
2018-01-12 15:40:15 +00:00
paul-szczepanek-arm
8a01d8fcb0
encryption funcs
2018-01-12 15:32:11 +00:00
paul-szczepanek-arm
b81a2b9fdb
corrected list funcs
2018-01-12 14:55:13 +00:00
paul-szczepanek-arm
749e39b175
missing error messages for paring
2018-01-12 14:50:09 +00:00
paul-szczepanek-arm
ff690ee8d6
removed redundant settings funcstions from pal
2018-01-12 14:17:57 +00:00
paul-szczepanek-arm
ccd1c92bfe
params needs to be ref
2018-01-12 13:37:54 +00:00
paul-szczepanek-arm
ce6f032970
pairing params added
2018-01-12 12:41:43 +00:00
Arto Kinnunen
8151e55838
Merge commit '47341478379429c08c468093e0326b5c79ecbc62'
...
* commit '47341478379429c08c468093e0326b5c79ecbc62':
Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from d0a2597..8689fca
2018-01-12 14:02:31 +02:00
paul-szczepanek-arm
c202076d1e
clear up type confusion, added key funcs to pal
2018-01-12 12:00:34 +00:00
paul-szczepanek-arm
7325ca90fd
make clear which event handler it is, remove pairing result as that's covered by security complete
2018-01-12 11:36:03 +00:00
paul-szczepanek-arm
9a948b73da
minor name and compilation fixes
2018-01-12 11:18:26 +00:00
Seppo Takalo
6bf0611748
Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation.
2018-01-12 12:03:56 +02:00
Christopher Haster
5df2b9b0e7
littlefs: Fixed file truncation without writes
...
In the open call, the LFS_O_TRUNC flag was correctly zeroing the file, but
it wasn't actually writing the change out to disk. This went unnoticed because
in the cases where the truncate was followed by a file write, the
updated contents would be written out correctly.
Marking the file as dirty if the file isn't already truncated fixes the
problem with the least impact. Also added better test cases around
truncating files.
2018-01-11 16:27:33 -06:00
paul-szczepanek-arm
a45237dc51
split interfaces
2018-01-11 18:45:27 +00:00
paul-szczepanek-arm
6655b67dd6
legacy oob and pairing cancel
2018-01-11 18:27:45 +00:00
Cruz Monrreal
dc87f0b1e6
Merge pull request #5313 from pan-/ble-cordio-pal-gap
...
Cordio: Pal Gap implementation
2018-01-11 10:35:42 -06:00
Cruz Monrreal
b32828bc37
Merge pull request #5739 from pan-/nordic-new-client
...
BLE: Nordic pal client implementation
2018-01-11 10:26:47 -06:00
Cruz Monrreal
c0c501c70f
Merge pull request #5768 from deepikabhavnani/storage_stats
...
Added statvfs API to get storage statistics
2018-01-11 10:25:41 -06:00
paul-szczepanek-arm
8a0aba398b
boilerplate
2018-01-11 13:17:47 +00:00
paul-szczepanek-arm
da3ecfc2e4
add keysize set and split up settings
2018-01-11 11:54:21 +00:00
TomoYamanaka
0d00be3a60
Add the function declarations of WEAK attribute to use LWIP on GR-LYCHEE
...
I added the function declarations of Ethernet functions that have a WEAK attribute. Although several Ethernet functions was called in rza1_emac.c, GR-LYCHEE don't have Ethernert feature. But there may be case that GR-LYCHEE uses LWIP feature.
In this case, since GR-LYCHEE will occur the build error, I addressed the error by defining the functions with a WEAK attribute. For reason of WEAK attribute, there is no influence in GR-PEACH and VK_RZ_A1H that have Ethernet feature.
2018-01-11 18:11:37 +09:00
paul-szczepanek-arm
827af85476
fixed call
2018-01-10 18:01:41 +00:00
paul-szczepanek-arm
1e3c1a96ec
fixed deafult event handler init and reset
2018-01-10 15:12:59 +00:00
Vincent Coubard
d33b02818a
BLE: Implement Generic GattClient reset logic.
2018-01-10 14:31:52 +00:00
Vincent Coubard
29988d5265
BLE: Align naming of GattClient procedure control blocks.
2018-01-10 14:18:00 +00:00
Vincent Coubard
3061db271d
BLE: Put generic gattclient procedures inside the GattClient class
2018-01-10 14:15:08 +00:00
Christopher Haster
d82d9888d4
Added COMMON folder for tests
...
A COMMON folder allows code reuse across different test cases. This
avoids code duplication or code enterying the application space.
The COMMON folder is uppercase to match naming conventions in Mbed OS.
2018-01-09 16:11:14 -06:00
paul-szczepanek-arm
67d1148a56
added timeout changed pointers to refs
2018-01-09 16:55:12 +00:00
Steven Cartmell
061795c489
Move in_critical_section implementation into the HAL
...
- Add function to HAL hal_in_critical_section()
- Wrap assert in FEATURE_UVISOR macro
2018-01-09 10:41:29 +00:00
Tero Heinonen
d8b369f5b2
mesh-api documentation removed
...
All documentation is now in Handbook
2018-01-09 12:37:06 +02:00
TomoYamanaka
9cbd678049
Modify the TYPO of debug info when using LWIP in RZ/A1 related
...
I modified the debug message when using LWIP in RZ/A1 related mbed boards.
In eth_arch_enetif_init(), sys_thread_new() was called and task name is appeared as debug information, but task name for debug was a mistake.
2018-01-09 18:30:07 +09:00
TomoYamanaka
285c259472
Performance improvement of LWIP communication in RZ_A1 related
...
For LWIP communication speedup in RZ_A1 related, I changed the below macro value and added the definition processing in RZ/A1 related header file(lwipopts_conf.h). For this reason, those macros are overrode by RZ/A1 related values, not default values.
2018-01-09 18:28:39 +09:00
ccli8
a68750473c
[M487] Support ECP H/W accelerator
2018-01-09 16:20:41 +08:00
TomoYamanaka
2e7d6df775
Commonize RZ_A1 related folders placed in "FEATURE_LWIP" directory
...
In the below "features/FEATURE_LWIP" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related. And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "features/FEATURE_LWIP" folder
<before>
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1H
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_VK_RZ_A1H
<after>
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1XX
2018-01-09 16:48:39 +09:00
Jimmy Brisson
086ccd5536
Merge pull request #5782 from geky/littlefs-fix-seek-cur
...
littlefs: Fix positive seek bounds checking
2018-01-08 10:38:00 -06:00
Jimmy Brisson
cef1cc26d8
Merge pull request #5651 from gorazdko/ff_lpc546xx-add-ethernet
...
ff_lpc546xx: add enet, change led1 and led3 pins
2018-01-08 10:35:56 -06:00
Jimmy Brisson
737f75a68f
Merge pull request #5608 from productize/nucleo-f413zh
...
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
2018-01-08 10:35:27 -06:00
Vincent Coubard
c5bc247217
Nordic BLE: Use SD API version rather than SDK define.
2018-01-08 14:00:23 +00:00
Vincent Coubard
e9ba84168b
Nordic BLE: Fix PalGattClient for SDK v13.
2018-01-08 13:52:42 +00:00
paul-szczepanek-arm
b1f73b4a5c
file rename to match class name
2018-01-08 12:12:47 +00:00
Vincent Coubard
e8bad03a1c
Nordic BLE: Simplification and clarification of pal client implementation.
2018-01-08 12:04:02 +00:00
Vincent Coubard
331e8f2aed
BLE: Fix include dependency in UUID.h.
2018-01-08 12:01:30 +00:00
paul-szczepanek-arm
580bfdfcb2
authorisation for pairing
2018-01-08 11:40:27 +00:00
paul-szczepanek-arm
0dcb9efb3e
add missing pal funcs, deprecate misnamed get link security
2018-01-08 11:28:48 +00:00
paul-szczepanek-arm
a268b6b831
decided to keep auth and sec mode and ditch ssp
2018-01-08 10:44:32 +00:00
paul-szczepanek-arm
2a05581177
no auth needed, security status for att
2018-01-07 23:18:14 +00:00
paul-szczepanek-arm
9863d71f44
requesting pair, force sc option
2018-01-07 22:22:55 +00:00
paul-szczepanek-arm
e1676dc1cc
added MITM to user facing security manager api
2018-01-05 17:32:49 +00:00
Steven Cartmell
e14bee5209
Fix potential race condition in critical section HAL API
...
Call underlying HAL implementation to enter critical section/disable interrupts
before incrementing the global critical section counter.
Modify HAL implementations to track first entrances to the critical section and
only update the saved state on first enter.
2018-01-05 14:55:58 +00:00
Steven Cartmell
3c9ae7bf1c
NRF51_DK: Add Critical Section HAL implementation
2018-01-05 14:55:57 +00:00
ccli8
67386b9ebd
[NUC472/M487] Fix DMA input/output buffers are overlapped in AES alter.
2018-01-05 09:18:26 +08:00
ccli8
4023078e14
[NUC472/M487] Remove unnecessary H/W context clone functions in SHA alter.
2018-01-05 09:18:26 +08:00
ccli8
acff29e6f2
[NUC472/M487] Fix context clone corner case in SHA alter.
...
As destination/source contexts are the same, we return immediately.
2018-01-05 09:18:25 +08:00
ccli8
d96bcda606
[NUC472/M487] Fix indefinite loop in SHA alter.
2018-01-05 09:18:25 +08:00
ccli8
8b7ff095a9
[NUC472/M487] Remove duplicate configuration of CRPT->SHA_CTL/CRPT->HMAC_CTL in SHA alter.
2018-01-05 09:18:25 +08:00
ccli8
3a8c1aa687
[NUC472/M487] Use interrupt signal rather than polling to check operation completion in DES alter.
...
This is to be consistent with PRNG/AES.
2018-01-05 09:18:24 +08:00
ccli8
0c1098483f
[NUC472/M487] Refine flow control code between crypto start and crypto ISR
2018-01-05 09:18:24 +08:00
ccli8
add839c808
[NUC472/M487] Refine code in SHA alter.
2018-01-05 09:18:24 +08:00
ccli8
b443a23b07
[NUC472/M487] Add memory barrier for DMA transfer in AES/DES alter.
2018-01-05 09:18:23 +08:00
ccli8
c906790257
[NUC472/M487] Call BSP driver rather than direct register access in DES alter.
2018-01-05 09:18:23 +08:00
ccli8
dc3c84c011
[NUC472/M487] Fix parameter check for TMODE/OPMODE in DES alter.
2018-01-05 09:18:23 +08:00
ccli8
815a6a7c4d
[NUC472/M487] Add parameter check for configuring DES registers in DES alter.
2018-01-05 09:18:23 +08:00