| Index: src/platform/vboot_reference/include/rsa_utility.h
|
| diff --git a/src/platform/vboot_reference/include/rsa_utility.h b/src/platform/vboot_reference/include/rsa_utility.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..808d17a825b8dce3cf8c0ac0061c0124012d779f
|
| --- /dev/null
|
| +++ b/src/platform/vboot_reference/include/rsa_utility.h
|
| @@ -0,0 +1,21 @@
|
| +/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + *
|
| + * Some utility functions for use with RSA signature verification.
|
| + */
|
| +
|
| +#ifndef VBOOT_REFERENCE_RSA_UTILITY_H_
|
| +#define VBOOT_REFERENCE_RSA_UTILITY_H_
|
| +
|
| +#include "rsa.h"
|
| +
|
| +/* Returns the size of a pre-processed RSA public key in bytes with algorithm
|
| + * [algorithm]. */
|
| +int RSAProcessedKeySize(int algorithm);
|
| +
|
| +/* Create a RSAPublic key structure from binary blob [buf] of length
|
| + * [len]. */
|
| +RSAPublicKey* RSAPublicKeyFromBuf(uint8_t* buf, int len);
|
| +
|
| +#endif /* VBOOT_REFERENCE_RSA_UTILITY_H_ */
|
|
|