blob: 74a17697420edf9e6203904ab3a9f44d32efb312 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/macros.h"
#include "sw/device/silicon_creator/rom_ext/keys/fake/rom_ext_dev_key_0_rsa_3072_exp_f4.h"
#include "sw/device/silicon_creator/rom_ext/keys/fake/rom_ext_test_key_0_rsa_3072_exp_f4.h"
#include "sw/device/silicon_creator/rom_ext/sigverify_keys.h"
/**
* Number of RSA public keys.
*/
enum {
kSigverifyRsaKeysCnt_ = 2,
};
const size_t kSigverifyRsaKeysCnt = kSigverifyRsaKeysCnt_;
/**
* Step size to use when checking RSA public keys.
*
* This must be coprime with and less than `kSigverifyNumRsaKeys`.
* Note: Step size is not applicable when `kSigverifyNumRsaKeys` is 1.
*/
const size_t kSigverifyRsaKeysStep = 1;
/**
* Fake public keys for signature verification in tests.
*
* Please see sw/device/silicon_creator/rom/keys/README.md for more
* details.
*/
const sigverify_rom_key_t kSigverifyRsaKeys[kSigverifyRsaKeysCnt_] = {
{
.key = ROM_EXT_TEST_KEY_0_RSA_3072_EXP_F4,
.key_type = kSigverifyKeyTypeTest,
},
{
.key = ROM_EXT_DEV_KEY_0_RSA_3072_EXP_F4,
.key_type = kSigverifyKeyTypeDev,
},
};