Index: content/renderer/webcrypto/webcrypto_util.h |
diff --git a/content/renderer/webcrypto/webcrypto_util.h b/content/renderer/webcrypto/webcrypto_util.h |
index 94159e0eca96eb7defa058f314f27fc6dadf0da5..022b3c29fb7d0c648eb4bff0bfdc5c520051aa91 100644 |
--- a/content/renderer/webcrypto/webcrypto_util.h |
+++ b/content/renderer/webcrypto/webcrypto_util.h |
@@ -27,6 +27,9 @@ CONTENT_EXPORT const uint8* Uint8VectorStart(const std::vector<uint8>& data); |
// the WebArrayBuffer could just be truncated instead. |
void ShrinkBuffer(blink::WebArrayBuffer* buffer, unsigned new_size); |
+// Creates a WebArrayBuffer from a uint8 byte array |
+blink::WebArrayBuffer CreateArrayBuffer(const uint8* data, unsigned data_size); |
+ |
// This function decodes unpadded 'base64url' encoded data, as described in |
// RFC4648 (http://www.ietf.org/rfc/rfc4648.txt) Section 5. |
// In Web Crypto, this type of encoding is only used inside JWK. |