Skip to content

Commit a1e8e43

Browse files
committed
Add Mynewt ed25519 support
Signed-off-by: Fabio Utzig <[email protected]>
1 parent 1171df9 commit a1e8e43

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

boot/bootutil/pkg.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ pkg.deps.BOOTUTIL_USE_MBED_TLS:
4747
pkg.deps.BOOTUTIL_USE_TINYCRYPT:
4848
- "@mcuboot/ext/tinycrypt/lib"
4949
- "@mcuboot/ext/mbedtls"
50+
51+
pkg.deps.BOOTUTIL_SIGN_ED25519:
52+
- "@apache-mynewt-core/crypto/mbedtls"
53+
- "@mcuboot/ext/fiat"

boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
#define MCUBOOT_SIGN_RSA 1
4444
#define MCUBOOT_SIGN_RSA_LEN MYNEWT_VAL(BOOTUTIL_SIGN_RSA_LEN)
4545
#endif
46+
#if MYNEWT_VAL(BOOTUTIL_SIGN_ED25519)
47+
#define MCUBOOT_SIGN_ED25519 1
48+
#endif
4649
#if MYNEWT_VAL(BOOTUTIL_SIGN_EC)
4750
#define MCUBOOT_SIGN_EC 1
4851
#endif

boot/mynewt/mcuboot_config/syscfg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ syscfg.defs:
3434
BOOTUTIL_SIGN_EC256:
3535
description: 'Images are signed using ECDSA NIST P-256.'
3636
value: 0
37+
BOOTUTIL_SIGN_ED25519:
38+
description: 'Images are signed using ED25519.'
39+
value: 0
3740
BOOTUTIL_ENCRYPT_RSA:
3841
description: 'Support for encrypted images using RSA-2048-OAEP.'
3942
value: 0

ext/fiat/pkg.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
pkg.name: ext/fiat
21+
pkg.description: "MCUboot's bundled fiat-crypto"
22+
pkg.author: "Apache Mynewt <[email protected]>"
23+
pkg.homepage: "http://mynewt.apache.org/"
24+
pkg.keywords:

0 commit comments

Comments
 (0)