You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
579 B
19 lines
579 B
4 years ago
|
// SPDX-FileCopyrightText: 2018 Coinkite, Inc. <coldcardwallet.com>
|
||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||
|
//
|
||
|
/*
|
||
|
* (c) Copyright 2018 by Coinkite Inc. This file is part of Coldcard <coldcardwallet.com>
|
||
|
* and is covered by GPLv3 license found in COPYING.
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
#include "fwheader.h"
|
||
|
|
||
|
extern bool verify_current_firmware(void);
|
||
|
extern bool verify_header(passport_firmware_header_t *hdr);
|
||
|
extern bool verify_signature(passport_firmware_header_t *hdr, uint8_t *fw_hash, uint32_t hashlen);
|
||
|
extern void verify_min_version(uint8_t *min_version);
|
||
|
|