| Index: content/child/webcrypto/openssl/hmac_openssl.cc
|
| diff --git a/content/child/webcrypto/openssl/hmac_openssl.cc b/content/child/webcrypto/openssl/hmac_openssl.cc
|
| index a40bfd930b45ad567c8f2e1aa86b4c5408a5ebf5..44e3584f293123b451c51e7fcd5263e6dc41ba12 100644
|
| --- a/content/child/webcrypto/openssl/hmac_openssl.cc
|
| +++ b/content/child/webcrypto/openssl/hmac_openssl.cc
|
| @@ -26,10 +26,10 @@ namespace {
|
| const blink::WebCryptoKeyUsageMask kAllKeyUsages =
|
| blink::WebCryptoKeyUsageSign | blink::WebCryptoKeyUsageVerify;
|
|
|
| -Status SignHmac(const std::vector<uint8>& raw_key,
|
| +Status SignHmac(const std::vector<uint8_t>& raw_key,
|
| const blink::WebCryptoAlgorithm& hash,
|
| const CryptoData& data,
|
| - std::vector<uint8>* buffer) {
|
| + std::vector<uint8_t>* buffer) {
|
| crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE);
|
|
|
| const EVP_MD* digest_algorithm = GetDigest(hash.id());
|
| @@ -133,7 +133,7 @@ class HmacImplementation : public AlgorithmImplementation {
|
| if (!algorithm_name)
|
| return Status::ErrorUnexpected();
|
|
|
| - std::vector<uint8> raw_data;
|
| + std::vector<uint8_t> raw_data;
|
| Status status = ReadSecretKeyJwk(
|
| key_data, algorithm_name, extractable, usage_mask, &raw_data);
|
| if (status.IsError())
|
| @@ -144,15 +144,15 @@ class HmacImplementation : public AlgorithmImplementation {
|
| }
|
|
|
| virtual Status ExportKeyRaw(const blink::WebCryptoKey& key,
|
| - std::vector<uint8>* buffer) const OVERRIDE {
|
| + std::vector<uint8_t>* buffer) const OVERRIDE {
|
| *buffer = SymKeyOpenSsl::Cast(key)->raw_key_data();
|
| return Status::Success();
|
| }
|
|
|
| virtual Status ExportKeyJwk(const blink::WebCryptoKey& key,
|
| - std::vector<uint8>* buffer) const OVERRIDE {
|
| + std::vector<uint8_t>* buffer) const OVERRIDE {
|
| SymKeyOpenSsl* sym_key = SymKeyOpenSsl::Cast(key);
|
| - const std::vector<uint8>& raw_data = sym_key->raw_key_data();
|
| + const std::vector<uint8_t>& raw_data = sym_key->raw_key_data();
|
|
|
| const char* algorithm_name =
|
| GetJwkHmacAlgorithmName(key.algorithm().hmacParams()->hash().id());
|
| @@ -171,7 +171,7 @@ class HmacImplementation : public AlgorithmImplementation {
|
| virtual Status Sign(const blink::WebCryptoAlgorithm& algorithm,
|
| const blink::WebCryptoKey& key,
|
| const CryptoData& data,
|
| - std::vector<uint8>* buffer) const OVERRIDE {
|
| + std::vector<uint8_t>* buffer) const OVERRIDE {
|
| const blink::WebCryptoAlgorithm& hash =
|
| key.algorithm().hmacParams()->hash();
|
|
|
| @@ -184,7 +184,7 @@ class HmacImplementation : public AlgorithmImplementation {
|
| const CryptoData& signature,
|
| const CryptoData& data,
|
| bool* signature_match) const OVERRIDE {
|
| - std::vector<uint8> result;
|
| + std::vector<uint8_t> result;
|
| Status status = Sign(algorithm, key, data, &result);
|
|
|
| if (status.IsError())
|
|
|