| 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 dd3977391b5852ca913b4f648b82a8fb4340fc80..e8e73eb7258fa85554604492dafc7e57b5000ece 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 {
|
| @@ -76,6 +77,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
|
|
|