summaryrefslogtreecommitdiff
path: root/chip/g/loader/verify.h
blob: f61bf719e4ee041d02c1dfb123dd9cbd84515ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright 2015 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __EC_CHIP_G_LOADER_VERIFY_H
#define __EC_CHIP_G_LOADER_VERIFY_H

/*
 * Verify a RSA PKCS1.5 signature against an expected sha256. Unlocks for
 * execution upon success.
 */
void LOADERKEY_verify(const uint32_t *key,
		      const uint32_t *signature, const uint32_t *sha256);

#endif  /* __EC_CHIP_G_LOADER_VERIFY_H */