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

Unified Diff: crypto/signature_creator.h

Issue 1539353003: Switch to standard integer types in crypto/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/sha2_unittest.cc ('k') | crypto/signature_creator_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_creator.h
diff --git a/crypto/signature_creator.h b/crypto/signature_creator.h
index ab9d2c1a21b58cf9e7205668f517c03377c8456a..abd1546164c8db22cddb414979480942ef3efe2c 100644
--- a/crypto/signature_creator.h
+++ b/crypto/signature_creator.h
@@ -5,10 +5,12 @@
#ifndef CRYPTO_SIGNATURE_CREATOR_H_
#define CRYPTO_SIGNATURE_CREATOR_H_
+#include <stdint.h>
+
#include <vector>
+#include "base/macros.h"
#include "build/build_config.h"
-#include "base/basictypes.h"
#include "crypto/crypto_export.h"
#if defined(USE_OPENSSL)
@@ -45,15 +47,15 @@ class CRYPTO_EXPORT SignatureCreator {
// specified in PKCS #1 v1.5.
static bool Sign(RSAPrivateKey* key,
HashAlgorithm hash_alg,
- const uint8* data,
+ const uint8_t* data,
int data_len,
- std::vector<uint8>* signature);
+ std::vector<uint8_t>* signature);
// Update the signature with more data.
- bool Update(const uint8* data_part, int data_part_len);
+ bool Update(const uint8_t* data_part, int data_part_len);
// Finalize the signature.
- bool Final(std::vector<uint8>* signature);
+ bool Final(std::vector<uint8_t>* signature);
private:
// Private constructor. Use the Create() method instead.
« no previous file with comments | « crypto/sha2_unittest.cc ('k') | crypto/signature_creator_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698