Index: chrome/renderer/extensions/enterprise_platform_keys_natives.cc |
diff --git a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc b/chrome/renderer/extensions/enterprise_platform_keys_natives.cc |
index eaa9864caf203269f2d1b2a0bec0a6b2e6ea97c0..3850ff317b16500351684eaced8998ed6a3a8cde 100644 |
--- a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc |
+++ b/chrome/renderer/extensions/enterprise_platform_keys_natives.cc |
@@ -12,6 +12,7 @@ |
#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
+#include "third_party/WebKit/public/platform/WebVector.h" |
#include "third_party/WebKit/public/web/WebCryptoNormalize.h" |
namespace extensions { |
@@ -47,6 +48,13 @@ scoped_ptr<base::DictionaryValue> WebCryptoAlgorithmToBaseValue( |
if (rsaHashedKeyGen) { |
dict->SetIntegerWithoutPathExpansion("modulusLength", |
rsaHashedKeyGen->modulusLengthBits()); |
+ const blink::WebVector<unsigned char>& public_exponent = |
+ rsaHashedKeyGen->publicExponent(); |
+ dict->SetWithoutPathExpansion( |
+ "publicExponent", |
+ base::BinaryValue::CreateWithCopiedBuffer( |
+ reinterpret_cast<const char*>(public_exponent.data()), |
+ public_exponent.size())); |
return dict.Pass(); |
} |
// Otherwise, |algorithm| is missing support here or no parameters were |