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

Unified Diff: net/cup_utils.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/cup_request_unittest.cc ('k') | net/cup_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cup_utils.h
diff --git a/net/cup_utils.h b/net/cup_utils.h
deleted file mode 100644
index 8ea9e2f27dae27b1d24a0aa65ec7d7c4bb724951..0000000000000000000000000000000000000000
--- a/net/cup_utils.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2008-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-
-#ifndef OMAHA_NET_CUP_UTILS_H__
-#define OMAHA_NET_CUP_UTILS_H__
-
-#include <atlstr.h>
-#include <vector>
-#include "base/basictypes.h"
-
-namespace omaha {
-
-namespace cup_utils {
-
-// Takes up to (rsa_key_size - SHA_DIGEST_SIZE) from the caller provided
-// input, and creates a padded result (data | SHA1(data)), where the msb
-// is keybits-160 and the lsb is 160 SHA1 bits. If less input is provided
-// the function pads the input with zeros.
-std::vector<uint8> RsaPad(size_t rsa_key_size,
- const void* data, size_t data_length);
-
-// Encodes a buffer of bytes as B64. This encoder has a few differences from
-// the standard: it uses a different char set that is http friendly and it does
-// not pad the output with '='.
-CStringA B64Encode(const void* data, size_t data_length);
-
-// Encodes a vector of bytes as web safe B64.
-CStringA B64Encode(const std::vector<uint8>& data);
-
-// Computes the SHA hash of a vector of bytes: HASH(data).
-std::vector<uint8> Hash(const std::vector<uint8>& data);
-
-// Computes the SHA hash of a CStringA: HASH(data).
-std::vector<uint8> Hash(const CStringA& data);
-
-// Computes the SHA hash of buffers: HASH(HASH(buf1)|HASH(buf2)|HASH(buf3)).
-std::vector<uint8> HashBuffers(const void* buf1, size_t len1,
- const void* buf2, size_t len2,
- const void* buf3, size_t len3);
-
-// Computes the HMAC of hashes: SYMSign[key](id|h1|h2|h3)
-// NULL arguments are not included in the signature computation.
-std::vector<uint8> SymSign(const std::vector<uint8>& key,
- uint8 id,
- const std::vector<uint8>* h1,
- const std::vector<uint8>* h2,
- const std::vector<uint8>* h3);
-
-// Parses out the c=xxx; from the cookie header.
-CString ParseCupCookie(const CString& cookie_header);
-
-} // namespace cup_utils
-
-} // namespace omaha
-
-#endif // OMAHA_NET_CUP_UTILS_H__
« no previous file with comments | « net/cup_request_unittest.cc ('k') | net/cup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698