blob: c99242ff4368d54352c46e5dd4b929626b94225a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2011 The Chromium OS 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 SHILL_CRYPTO_ROT47_
#define SHILL_CRYPTO_ROT47_
#include <base/basictypes.h>
#include "shill/crypto_interface.h"
namespace shill {
// ROT47 crypto module implementation.
class CryptoROT47 : public CryptoInterface {
public:
static const char kID[];
CryptoROT47();
// Inherited from CryptoInterface.
virtual std::string GetID();
virtual bool Encrypt(const std::string &plaintext, std::string *ciphertext);
virtual bool Decrypt(const std::string &ciphertext, std::string *plaintext);
private:
DISALLOW_COPY_AND_ASSIGN(CryptoROT47);
};
} // namespace shill
#endif // SHILL_CRYPTO_ROT47_
|