Index: crypto/ec_signature_creator.h |
diff --git a/crypto/ec_signature_creator.h b/crypto/ec_signature_creator.h |
index 16e64f5753cb85a4506a8e117dc7281d678d004e..47128fed1b88116f4a754f0ad865845c516c605d 100644 |
--- a/crypto/ec_signature_creator.h |
+++ b/crypto/ec_signature_creator.h |
@@ -5,10 +5,11 @@ |
#ifndef CRYPTO_EC_SIGNATURE_CREATOR_H_ |
#define CRYPTO_EC_SIGNATURE_CREATOR_H_ |
+#include <stdint.h> |
+ |
#include <string> |
#include <vector> |
-#include "base/basictypes.h" |
#include "crypto/crypto_export.h" |
namespace crypto { |
@@ -48,17 +49,17 @@ class CRYPTO_EXPORT ECSignatureCreator { |
// ECDSA-Sig-Value ::= SEQUENCE { |
// r INTEGER, |
// s INTEGER } |
- virtual bool Sign(const uint8* data, |
+ virtual bool Sign(const uint8_t* data, |
int data_len, |
- std::vector<uint8>* signature) = 0; |
+ std::vector<uint8_t>* signature) = 0; |
// DecodeSignature converts from a DER encoded ECDSA-Sig-Value (as produced |
// by Sign) to a `raw' ECDSA signature which consists of a pair of |
// big-endian, zero-padded, 256-bit integers, r and s. On success it returns |
// true and puts the raw signature into |out_raw_sig|. |
// (Only P-256 signatures are supported.) |
- virtual bool DecodeSignature(const std::vector<uint8>& signature, |
- std::vector<uint8>* out_raw_sig) = 0; |
+ virtual bool DecodeSignature(const std::vector<uint8_t>& signature, |
+ std::vector<uint8_t>* out_raw_sig) = 0; |
}; |
} // namespace crypto |