mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
BUG=670 TEST=RSA verification test using the convenience function is passes. Review URL: http://codereview.chromium.org/575019
22 lines
668 B
C
22 lines
668 B
C
/* 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_ */
|