| Index: content/child/webcrypto/webcrypto_util.cc
|
| diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
|
| similarity index 97%
|
| rename from content/renderer/webcrypto/webcrypto_util.cc
|
| rename to content/child/webcrypto/webcrypto_util.cc
|
| index a72805640570009d8dcfc5f2b10a0bbf5b8128fa..16967f2f2616f3ea55e34047d482bcccf2ce7548 100644
|
| --- a/content/renderer/webcrypto/webcrypto_util.cc
|
| +++ b/content/child/webcrypto/webcrypto_util.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/renderer/webcrypto/webcrypto_util.h"
|
| +#include "content/child/webcrypto/webcrypto_util.h"
|
|
|
| #include "base/base64.h"
|
| #include "base/logging.h"
|
| @@ -253,11 +253,9 @@ blink::WebCryptoAlgorithm CreateRsaOaepImportAlgorithm(
|
| DCHECK(IsHashAlgorithm(hash_id));
|
| return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
|
| blink::WebCryptoAlgorithmIdRsaOaep,
|
| - new blink::WebCryptoRsaHashedImportParams(
|
| - CreateAlgorithm(hash_id)));
|
| + new blink::WebCryptoRsaHashedImportParams(CreateAlgorithm(hash_id)));
|
| }
|
|
|
| -
|
| unsigned int ShaBlockSizeBytes(blink::WebCryptoAlgorithmId hash_id) {
|
| switch (hash_id) {
|
| case blink::WebCryptoAlgorithmIdSha1:
|
| @@ -282,8 +280,7 @@ bool CreateSecretKeyAlgorithm(const blink::WebCryptoAlgorithm& algorithm,
|
| if (hash.isNull())
|
| return false;
|
| *key_algorithm = blink::WebCryptoKeyAlgorithm::adoptParamsAndCreate(
|
| - algorithm.id(),
|
| - new blink::WebCryptoHmacKeyAlgorithmParams(hash));
|
| + algorithm.id(), new blink::WebCryptoHmacKeyAlgorithmParams(hash));
|
| return true;
|
| }
|
| case blink::WebCryptoAlgorithmIdAesKw:
|
|
|