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

Unified Diff: content/child/webcrypto/openssl/aes_key_openssl.cc

Issue 404733005: Replace uses of uint8 with uint8_t. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/child/webcrypto/openssl/aes_key_openssl.cc
diff --git a/content/child/webcrypto/openssl/aes_key_openssl.cc b/content/child/webcrypto/openssl/aes_key_openssl.cc
index f6fda3a76047e2ee75245d21da435cdf66f919a2..9e97d96d0f29a45b0f5ef5fad67d10c7db5c84ff 100644
--- a/content/child/webcrypto/openssl/aes_key_openssl.cc
+++ b/content/child/webcrypto/openssl/aes_key_openssl.cc
@@ -92,7 +92,7 @@ Status AesAlgorithm::ImportKeyJwk(const CryptoData& key_data,
bool extractable,
blink::WebCryptoKeyUsageMask usage_mask,
blink::WebCryptoKey* key) const {
- std::vector<uint8> raw_data;
+ std::vector<uint8_t> raw_data;
Status status = ReadAesSecretKeyJwk(
key_data, jwk_suffix_, extractable, usage_mask, &raw_data);
if (status.IsError())
@@ -103,14 +103,15 @@ Status AesAlgorithm::ImportKeyJwk(const CryptoData& key_data,
}
Status AesAlgorithm::ExportKeyRaw(const blink::WebCryptoKey& key,
- std::vector<uint8>* buffer) const {
+ std::vector<uint8_t>* buffer) const {
*buffer = SymKeyOpenSsl::Cast(key)->raw_key_data();
return Status::Success();
}
Status AesAlgorithm::ExportKeyJwk(const blink::WebCryptoKey& key,
- std::vector<uint8>* buffer) const {
- const std::vector<uint8>& raw_data = SymKeyOpenSsl::Cast(key)->raw_key_data();
+ std::vector<uint8_t>* buffer) const {
+ const std::vector<uint8_t>& raw_data =
+ SymKeyOpenSsl::Cast(key)->raw_key_data();
WriteSecretKeyJwk(CryptoData(raw_data),
MakeJwkAesAlgorithmName(jwk_suffix_, raw_data.size()),
« no previous file with comments | « content/child/webcrypto/openssl/aes_key_openssl.h ('k') | content/child/webcrypto/openssl/aes_kw_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698