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

Side by Side Diff: firmware/lib/cryptolib/rsa_utility.c

Issue 2815011: Remove unused files, and tidy the directory structure of the remaining ones. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « firmware/lib/cryptolib/rsa.c ('k') | firmware/lib/cryptolib/sha1.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Implementation of RSA utility functions. 5 * Implementation of RSA utility functions.
6 */ 6 */
7 7
8 #include "cryptolib.h" 8 #include "cryptolib.h"
9 #include "stateful_util.h" 9 #include "stateful_util.h"
10 #include "utility.h" 10 #include "utility.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 verification_key = (RSAPublicKey*) key; /* Supress const warning. */ 125 verification_key = (RSAPublicKey*) key; /* Supress const warning. */
126 else 126 else
127 return 0; /* Both can't be NULL or non-NULL. */ 127 return 0; /* Both can't be NULL or non-NULL. */
128 128
129 success = RSAVerify(verification_key, sig, sig_size, algorithm, digest); 129 success = RSAVerify(verification_key, sig, sig_size, algorithm, digest);
130 130
131 if (!key) 131 if (!key)
132 RSAPublicKeyFree(verification_key); /* Only free if we allocated it. */ 132 RSAPublicKeyFree(verification_key); /* Only free if we allocated it. */
133 return success; 133 return success;
134 } 134 }
OLDNEW
« no previous file with comments | « firmware/lib/cryptolib/rsa.c ('k') | firmware/lib/cryptolib/sha1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698