OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/inspector/AddStringToDigestor.h" |
| 6 |
| 7 #include "platform/wtf/text/WTFString.h" |
| 8 #include "public/platform/WebCrypto.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 void AddStringToDigestor(WebCryptoDigestor* digestor, const String& string) { |
| 13 const CString c_string = string.Utf8(); |
| 14 digestor->Consume(reinterpret_cast<const unsigned char*>(c_string.data()), |
| 15 c_string.length()); |
| 16 } |
| 17 |
| 18 } // namespace blink |
OLD | NEW |