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

Unified Diff: crypto/encryptor.h

Issue 2218903002: Remove unused private functions from Encryptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | crypto/encryptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/encryptor.h
diff --git a/crypto/encryptor.h b/crypto/encryptor.h
index 4b6745ef0fd278535213867f23385d56f9c6ed98..c94a730914d216be887883509b92e6a5c20c2a5d 100644
--- a/crypto/encryptor.h
+++ b/crypto/encryptor.h
@@ -84,29 +84,6 @@ class CRYPTO_EXPORT Encryptor {
// TODO(albertb): Support streaming encryption.
private:
- // Generates a mask using |counter_| to be used for encryption in CTR mode.
- // Resulting mask will be written to |mask| with |mask_len| bytes.
- //
- // Make sure there's enough space in mask when calling this method.
- // Reserve at least |plaintext_len| + 16 bytes for |mask|.
- //
- // The generated mask will always have at least |plaintext_len| bytes and
- // will be a multiple of the counter length.
- //
- // This method is used only in CTR mode.
- //
- // Returns false if this call failed.
- bool GenerateCounterMask(size_t plaintext_len,
- uint8_t* mask,
- size_t* mask_len);
-
- // Mask the |plaintext| message using |mask|. The output will be written to
- // |ciphertext|. |ciphertext| must have at least |plaintext_len| bytes.
- void MaskMessage(const void* plaintext,
- size_t plaintext_len,
- const void* mask,
- void* ciphertext) const;
-
SymmetricKey* key_;
Mode mode_;
std::unique_ptr<Counter> counter_;
« no previous file with comments | « no previous file | crypto/encryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698