| Index: content/renderer/webcrypto/webcrypto_util.cc
|
| diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc
|
| index b5a318a1be2b9a99721c737520c947a442f7172a..977c282c63b72230c52704bb74a9691d04ee0eec 100644
|
| --- a/content/renderer/webcrypto/webcrypto_util.cc
|
| +++ b/content/renderer/webcrypto/webcrypto_util.cc
|
| @@ -88,34 +88,6 @@ blink::WebCryptoAlgorithm CreateAlgorithm(blink::WebCryptoAlgorithmId id) {
|
| return blink::WebCryptoAlgorithm::adoptParamsAndCreate(id, NULL);
|
| }
|
|
|
| -blink::WebCryptoAlgorithm CreateHmacAlgorithmByHashOutputLen(
|
| - unsigned short hash_output_length_bits) {
|
| - blink::WebCryptoAlgorithmId hash_id;
|
| - switch (hash_output_length_bits) {
|
| - case 160:
|
| - hash_id = blink::WebCryptoAlgorithmIdSha1;
|
| - break;
|
| - case 224:
|
| - hash_id = blink::WebCryptoAlgorithmIdSha224;
|
| - break;
|
| - case 256:
|
| - hash_id = blink::WebCryptoAlgorithmIdSha256;
|
| - break;
|
| - case 384:
|
| - hash_id = blink::WebCryptoAlgorithmIdSha384;
|
| - break;
|
| - case 512:
|
| - hash_id = blink::WebCryptoAlgorithmIdSha512;
|
| - break;
|
| - default:
|
| - NOTREACHED();
|
| - return blink::WebCryptoAlgorithm::createNull();
|
| - }
|
| - return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
|
| - blink::WebCryptoAlgorithmIdHmac,
|
| - new blink::WebCryptoHmacParams(CreateAlgorithm(hash_id)));
|
| -}
|
| -
|
| blink::WebCryptoAlgorithm CreateHmacAlgorithmByHashId(
|
| blink::WebCryptoAlgorithmId hash_id) {
|
| DCHECK(IsHashAlgorithm(hash_id));
|
|
|