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

Unified Diff: net/android/keystore.cc

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 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: net/android/keystore.cc
diff --git a/net/android/keystore.cc b/net/android/keystore.cc
index 3a2948a71730b47ec6758ad7d75f478bf903f6a9..dd379392c3e518db6b2da1fa50731f10301dfbef 100644
--- a/net/android/keystore.cc
+++ b/net/android/keystore.cc
@@ -22,9 +22,7 @@ using base::android::JavaArrayOfByteArrayToStringVector;
namespace net {
namespace android {
-bool GetRSAKeyModulus(
- jobject private_key_ref,
- std::vector<uint8>* result) {
+bool GetRSAKeyModulus(jobject private_key_ref, std::vector<uint8_t>* result) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> modulus_ref =
@@ -38,8 +36,7 @@ bool GetRSAKeyModulus(
return true;
}
-bool GetDSAKeyParamQ(jobject private_key_ref,
- std::vector<uint8>* result) {
+bool GetDSAKeyParamQ(jobject private_key_ref, std::vector<uint8_t>* result) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> q_ref =
@@ -54,8 +51,7 @@ bool GetDSAKeyParamQ(jobject private_key_ref,
return true;
}
-bool GetECKeyOrder(jobject private_key_ref,
- std::vector<uint8>* result) {
+bool GetECKeyOrder(jobject private_key_ref, std::vector<uint8_t>* result) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> order_ref =
@@ -72,7 +68,7 @@ bool GetECKeyOrder(jobject private_key_ref,
}
bool GetPrivateKeyEncodedBytes(jobject private_key_ref,
- std::vector<uint8>* result) {
+ std::vector<uint8_t>* result) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> encoded_ref =
@@ -87,17 +83,14 @@ bool GetPrivateKeyEncodedBytes(jobject private_key_ref,
return true;
}
-bool RawSignDigestWithPrivateKey(
- jobject private_key_ref,
- const base::StringPiece& digest,
- std::vector<uint8>* signature) {
+bool RawSignDigestWithPrivateKey(jobject private_key_ref,
+ const base::StringPiece& digest,
+ std::vector<uint8_t>* signature) {
JNIEnv* env = AttachCurrentThread();
// Convert message to byte[] array.
- ScopedJavaLocalRef<jbyteArray> digest_ref =
- ToJavaByteArray(env,
- reinterpret_cast<const uint8*>(digest.data()),
- digest.length());
+ ScopedJavaLocalRef<jbyteArray> digest_ref = ToJavaByteArray(
+ env, reinterpret_cast<const uint8_t*>(digest.data()), digest.length());
DCHECK(!digest_ref.is_null());
// Invoke platform API

Powered by Google App Engine
This is Rietveld 408576698