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

Side by Side Diff: crypto/signature_creator.h

Issue 382633009: Use EVP_DigestSign* rather than EVP_Sign* in SignatureCreator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return values are saner Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | crypto/signature_creator_nss.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 #ifndef CRYPTO_SIGNATURE_CREATOR_H_ 5 #ifndef CRYPTO_SIGNATURE_CREATOR_H_
6 #define CRYPTO_SIGNATURE_CREATOR_H_ 6 #define CRYPTO_SIGNATURE_CREATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Update the signature with more data. 52 // Update the signature with more data.
53 bool Update(const uint8* data_part, int data_part_len); 53 bool Update(const uint8* data_part, int data_part_len);
54 54
55 // Finalize the signature. 55 // Finalize the signature.
56 bool Final(std::vector<uint8>* signature); 56 bool Final(std::vector<uint8>* signature);
57 57
58 private: 58 private:
59 // Private constructor. Use the Create() method instead. 59 // Private constructor. Use the Create() method instead.
60 SignatureCreator(); 60 SignatureCreator();
61 61
62 RSAPrivateKey* key_;
63
64 #if defined(USE_OPENSSL) 62 #if defined(USE_OPENSSL)
65 EVP_MD_CTX* sign_context_; 63 EVP_MD_CTX* sign_context_;
66 #elif defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX) 64 #elif defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX)
67 SGNContextStr* sign_context_; 65 SGNContextStr* sign_context_;
68 #endif 66 #endif
69 67
70 DISALLOW_COPY_AND_ASSIGN(SignatureCreator); 68 DISALLOW_COPY_AND_ASSIGN(SignatureCreator);
71 }; 69 };
72 70
73 } // namespace crypto 71 } // namespace crypto
74 72
75 #endif // CRYPTO_SIGNATURE_CREATOR_H_ 73 #endif // CRYPTO_SIGNATURE_CREATOR_H_
OLDNEW
« no previous file with comments | « no previous file | crypto/signature_creator_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698