From 9ea2ce91fa45cb6f78200c7ebfb46eb38e85b16a Mon Sep 17 00:00:00 2001 From: PARKJIHOON Date: Mon, 6 Jan 2020 20:25:21 +0900 Subject: [PATCH] tidy up PR comments #1 Signed-off-by: PARKJIHOON --- .../targets/TARGET_Samsung/mbedtls_device.h | 37 ++++++++++--------- .../targets/TARGET_Samsung/sha/sha256_alt.c | 21 ++++++++++- .../targets/TARGET_Samsung/sha/sha256_alt.h | 21 ++++++++++- .../targets/TARGET_Samsung/sha/sha512_alt.c | 21 ++++++++++- .../targets/TARGET_Samsung/sha/sha512_alt.h | 20 +++++++++- .../TARGET_SIDK_S5JS100/PeripheralNames.h | 9 +---- 6 files changed, 99 insertions(+), 30 deletions(-) diff --git a/features/mbedtls/targets/TARGET_Samsung/mbedtls_device.h b/features/mbedtls/targets/TARGET_Samsung/mbedtls_device.h index e1d60690de..b7988415a5 100644 --- a/features/mbedtls/targets/TARGET_Samsung/mbedtls_device.h +++ b/features/mbedtls/targets/TARGET_Samsung/mbedtls_device.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2015-2016 Nuvoton + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,27 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ #ifndef MBEDTLS_DEVICE_H #define MBEDTLS_DEVICE_H -//#define MBEDTLS_DES_ALT - -//#define MBEDTLS_SHA1_ALT #define MBEDTLS_SHA256_ALT #define MBEDTLS_SHA512_ALT -//#define MBEDTLS_AES_ALT - -//#define MBEDTLS_ECP_INTERNAL_ALT -/* Support for Weierstrass curves with Jacobi representation */ -//#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT -//#define MBEDTLS_ECP_ADD_MIXED_ALT -//#define MBEDTLS_ECP_DOUBLE_JAC_ALT -//#define MBEDTLS_ECP_NORMALIZE_JAC_ALT -//#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT -/* Support for curves with Montgomery arithmetic */ -//#define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT -//#define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT -//#define MBEDTLS_ECP_NORMALIZE_MXZ_ALT - #endif /* MBEDTLS_DEVICE_H */ diff --git a/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.c b/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.c index 08742b1614..6178d47fad 100644 --- a/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.c +++ b/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.c @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2015-2016 Nuvoton + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ + #include "mbedtls/sha256.h" #include "mbedtls/platform_util.h" diff --git a/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.h b/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.h index dc8cdfc7ae..0dab5c9f28 100644 --- a/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.h +++ b/features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2015-2016 Nuvoton + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ + #ifndef MBEDTLS_SHA256_ALT_H #define MBEDTLS_SHA256_ALT_H diff --git a/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.c b/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.c index 61e0c00ab3..6587710e76 100644 --- a/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.c +++ b/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.c @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2015-2016 Nuvoton + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ + #include "mbedtls/sha512.h" #include "mbedtls/platform_util.h" diff --git a/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.h b/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.h index 7c9a548aa8..f62c1a0f6e 100644 --- a/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.h +++ b/features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2015-2016 Nuvoton + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ #ifndef MBEDTLS_SHA512_ALT_H #define MBEDTLS_SHA512_ALT_H diff --git a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/PeripheralNames.h b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/PeripheralNames.h index 84bf52f353..7180a97cbe 100644 --- a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/PeripheralNames.h +++ b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/PeripheralNames.h @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2018 ARM Limited + * Copyright (c) 2006-2019 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -107,13 +107,6 @@ typedef enum { #define STDIO_UART _UART_NAME(UART_, UART_STDIO_PORT) #endif - -/* what are these ports for? */ -//#define MBED_UART0 UART_TX0, UART_RX0 -//#define MBED_UART1 UART_TX1, UART_RX1 -//#define MBED_UARTUSB UART_TX1, UART_RX1 - -//USB UART - what for ??? #define USBTX UART_TX0 #define USBRX UART_RX0