Files
OpenCellular/include/rsa_utility.h
Gaurav Shah e178fd9e34 Add some convenience/helper functions for RSA. Modify test utility to use the new function.
BUG=670
TEST=RSA verification test using the convenience function is passes.

Review URL: http://codereview.chromium.org/575019
2010-02-05 11:44:58 -08:00

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_ */