40 lines
933 B
C++
40 lines
933 B
C++
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
// Description:
|
|
// Dummy version of privacy crypto classes for systems which
|
|
// can't tolerate OpenSSL as a dependency.
|
|
//
|
|
|
|
#include "privacy_crypto.h"
|
|
|
|
namespace wvcdm {
|
|
|
|
AesCbcKey::AesCbcKey() {}
|
|
|
|
AesCbcKey::~AesCbcKey() {}
|
|
|
|
bool AesCbcKey::Init(const std::string& key) { return false; }
|
|
|
|
bool AesCbcKey::Encrypt(const std::string& in, std::string* out,
|
|
std::string* iv) {
|
|
return false;
|
|
}
|
|
|
|
RsaPublicKey::RsaPublicKey() {}
|
|
|
|
RsaPublicKey::~RsaPublicKey() {}
|
|
|
|
bool RsaPublicKey::Init(const std::string& serialized_key) { return false; }
|
|
|
|
bool RsaPublicKey::Encrypt(const std::string& clear_message,
|
|
std::string* encrypted_message) {
|
|
return false;
|
|
}
|
|
|
|
bool RsaPublicKey::VerifySignature(const std::string& message,
|
|
const std::string& signature) {
|
|
return false;
|
|
}
|
|
|
|
} // namespace wvcdm
|