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_; |