-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Generate SPHINCS+ keys for the test_owner. 2. Fix the signing rules to sign keys from a KeyInfo provider. Signed-off-by: Chris Frantz <[email protected]>
- Loading branch information
Showing
8 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
sw/device/silicon_creator/lib/ownership/keys/fake/app_dev_spx.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright lowRISC contributors (OpenTitan project). | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_DEV_SPX_H_ | ||
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_DEV_SPX_H_ | ||
|
||
#define APP_DEV_SPX \ | ||
{ \ | ||
.data = { \ | ||
2635496609, \ | ||
3094453936, \ | ||
1095047114, \ | ||
875270085, \ | ||
1206311292, \ | ||
2547787469, \ | ||
354526470, \ | ||
195185787 \ | ||
} \ | ||
} | ||
|
||
#endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_DEV_SPX_H_ |
4 changes: 4 additions & 0 deletions
4
sw/device/silicon_creator/lib/ownership/keys/fake/app_dev_spx.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN RAW:SPHINCS+_SHA2_128s_simple PRIVATE KEY----- | ||
u7uaeZ+G20io4GS4Jov0um6HEHEFjHuQDuYn6l6eLwqhfBadsJ5xuMoXRUHFjys0 | ||
fNnmR80m3JcGpSEVe0yiCw== | ||
-----END RAW:SPHINCS+_SHA2_128s_simple PRIVATE KEY----- |
3 changes: 3 additions & 0 deletions
3
sw/device/silicon_creator/lib/ownership/keys/fake/app_dev_spx.pub.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN RAW:SPHINCS+_SHA2_128s_simple PUBLIC KEY----- | ||
oXwWnbCecbjKF0VBxY8rNHzZ5kfNJtyXBqUhFXtMogs= | ||
-----END RAW:SPHINCS+_SHA2_128s_simple PUBLIC KEY----- |
22 changes: 22 additions & 0 deletions
22
sw/device/silicon_creator/lib/ownership/keys/fake/app_prod_spx.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright lowRISC contributors (OpenTitan project). | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_PROD_SPX_H_ | ||
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_PROD_SPX_H_ | ||
|
||
#define APP_PROD_SPX \ | ||
{ \ | ||
.data = { \ | ||
342329895, \ | ||
2013107991, \ | ||
2297648695, \ | ||
3306667688, \ | ||
2064727507, \ | ||
1555686114, \ | ||
1109351432, \ | ||
3336892138 \ | ||
} \ | ||
} | ||
|
||
#endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_PROD_SPX_H_ |
4 changes: 4 additions & 0 deletions
4
sw/device/silicon_creator/lib/ownership/keys/fake/app_prod_spx.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN RAW:SPHINCS+_SHA2_128s_simple PRIVATE KEY----- | ||
1s9ET2uLFvVqk3uY41Pnco52JCezKO/cd8pveYWf4hYnimcUF5f9dzdW84iovhfF | ||
0z0Re+LiuVwIXB9C6u7kxg== | ||
-----END RAW:SPHINCS+_SHA2_128s_simple PRIVATE KEY----- |
3 changes: 3 additions & 0 deletions
3
sw/device/silicon_creator/lib/ownership/keys/fake/app_prod_spx.pub.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN RAW:SPHINCS+_SHA2_128s_simple PUBLIC KEY----- | ||
J4pnFBeX/Xc3VvOIqL4XxdM9EXvi4rlcCFwfQuru5MY= | ||
-----END RAW:SPHINCS+_SHA2_128s_simple PUBLIC KEY----- |