networking_private_crypto_openssl.cc revision 116680a4aac90f2aa7413d9095a592090648e557
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/common/extensions/api/networking_private/networking_private_crypto.h"
6
7#include "base/logging.h"
8
9NetworkingPrivateCrypto::NetworkingPrivateCrypto() {
10}
11
12NetworkingPrivateCrypto::~NetworkingPrivateCrypto() {
13}
14
15bool NetworkingPrivateCrypto::VerifyCredentials(
16    const std::string& certificate,
17    const std::string& signature,
18    const std::string& data,
19    const std::string& connected_mac) {
20  // https://crbug.com/393023
21  NOTIMPLEMENTED();
22  return false;
23}
24
25bool NetworkingPrivateCrypto::EncryptByteString(
26    const std::vector<uint8>& pub_key_der,
27    const std::string& data,
28    std::vector<uint8>* encrypted_output) {
29  // https://crbug.com/393023
30  NOTIMPLEMENTED();
31  return false;
32}
33
34bool NetworkingPrivateCrypto::DecryptByteString(
35    const std::string& private_key_pem,
36    const std::vector<uint8>& encrypted_data,
37    std::string* decrypted_output) {
38  // https://crbug.com/393023
39  NOTIMPLEMENTED();
40  return false;
41}
42