| 1 | /* Copyright 2021 The ChromiumOS Authors |
| 2 | * Use of this source code is governed by a BSD-style license that can be |
| 3 | * found in the LICENSE file. |
| 4 | * |
| 5 | * Internal functions from 2rsa.c that have error conditions we can't trigger |
| 6 | * from the public APIs. These include checks for bad algorithms where the |
| 7 | * next call level up already checks for bad algorithms, etc. |
| 8 | * |
| 9 | * These functions aren't in 2rsa.h because they're not part of the public |
| 10 | * APIs. |
| 11 | */ |
| 12 | |
| 13 | #ifndef VBOOT_REFERENCE_2RSA_PRIVATE_H_ |
| 14 | #define VBOOT_REFERENCE_2RSA_PRIVATE_H_ |
| 15 | |
| 16 | struct vb2_public_key; |
| 17 | int vb2_mont_ge(const struct vb2_public_key *key, uint32_t *a); |
| 18 | vb2_error_t vb2_check_padding(const uint8_t *sig, |
| 19 | const struct vb2_public_key *key); |
| 20 | |
| 21 | #endif /* VBOOT_REFERENCE_2RSA_PRIVATE_H_ */ |