Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: src/platform/vboot_reference/include/rsa_utility.h

Issue 575019: Add some convenience/helper functions for RSA. (Closed)
Patch Set: Add comment to size calculation. Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 *
5 * Some utility functions for use with RSA signature verification.
6 */
7
8 #ifndef VBOOT_REFERENCE_RSA_UTILITY_H_
9 #define VBOOT_REFERENCE_RSA_UTILITY_H_
10
11 #include "rsa.h"
12
13 /* Returns the size of a pre-processed RSA public key in bytes with algorithm
14 * [algorithm]. */
15 int RSAProcessedKeySize(int algorithm);
16
17 /* Create a RSAPublic key structure from binary blob [buf] of length
18 * [len]. */
19 RSAPublicKey* RSAPublicKeyFromBuf(uint8_t* buf, int len);
20
21 #endif /* VBOOT_REFERENCE_RSA_UTILITY_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698