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

Unified Diff: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h

Issue 1418113002: RTCPeerConnection.generateCertificate taking AlgorithmIdentifier and using WebCrypto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved implementation to .cpp Created 5 years, 2 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: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
diff --git a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
index e90e98d466b11a6cea941a4d5b57e185cca118fa..eba3225b180ce59baf777a79f729752b8d9150df 100644
--- a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
+++ b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
@@ -34,6 +34,7 @@
#include "WebCommon.h"
#include "WebCryptoAlgorithm.h"
#include "WebCryptoKey.h"
+#include "WebCryptoUtil.h"
#include "WebVector.h"
namespace blink {
@@ -227,6 +228,11 @@ public:
const WebVector<unsigned char>& publicExponent() const { return m_publicExponent; }
const WebCryptoAlgorithm& hash() const { return m_hash; }
+ // Converts the public exponent (BigInteger) to unsigned int. Returns true on success (if its value is not too large).
+ bool publicExponentToUint(unsigned& result) const
eroman 2015/10/27 18:24:11 I suggest removing this function, and just using W
hbos_chromium 2015/10/28 10:35:05 Done.
+ {
+ return bigIntegerToUint(m_publicExponent, result);
+ }
private:
const unsigned m_modulusLengthBits;
const WebVector<unsigned char> m_publicExponent;

Powered by Google App Engine
This is Rietveld 408576698