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

Unified Diff: crypto/openpgp_symmetric_encryption.h

Issue 253643002: Remove unused bits implementing parts of RFC 4880 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: crypto/openpgp_symmetric_encryption.h
diff --git a/crypto/openpgp_symmetric_encryption.h b/crypto/openpgp_symmetric_encryption.h
deleted file mode 100644
index bcc81d68d474aa4da469635f0bf6a67293beea6b..0000000000000000000000000000000000000000
--- a/crypto/openpgp_symmetric_encryption.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CRYPTO_OPENPGP_SYMMETRIC_ENCRYPTION_H_
-#define CRYPTO_OPENPGP_SYMMETRIC_ENCRYPTION_H_
-
-#include <string>
-
-#include "base/strings/string_piece.h"
-#include "crypto/crypto_export.h"
-
-namespace crypto {
-
-// OpenPGPSymmetricEncrytion implements enough of RFC 4880 to read and write
-// uncompressed, symmetrically encrypted data. You can create ciphertext
-// compatable with this code from the command line with:
-// gpg --compress-algo=NONE --cipher-algo=AES -c
-//
-// Likewise, the output of this can be decrypted on the command line with:
-// gpg < input
-class CRYPTO_EXPORT OpenPGPSymmetricEncrytion {
- public:
- enum Result {
- OK,
- UNKNOWN_CIPHER, // you forgot to pass --cipher-algo=AES to gpg
- UNKNOWN_HASH,
- NOT_SYMMETRICALLY_ENCRYPTED, // it's OpenPGP data, but not correct form
- COMPRESSED, // you forgot to pass --compress-algo=NONE
- PARSE_ERROR, // it's not OpenPGP data.
- INTERNAL_ERROR,
- };
-
- static Result Decrypt(base::StringPiece encrypted,
- base::StringPiece passphrase,
- std::string *out);
-
- static std::string Encrypt(base::StringPiece plaintext,
- base::StringPiece passphrase);
-};
-
-} // namespace crypto
-
-#endif // CRYPTO_OPENPGP_SYMMETRIC_ENCRYPTION_H_
-

Powered by Google App Engine
This is Rietveld 408576698