summaryrefslogtreecommitdiffstats
path: root/base/crypto/symmetric_key_openssl.cc
blob: 591252dc225393a1cbc20916a93d51f6a5b2d5af (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
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2010 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.

#include "base/crypto/symmetric_key.h"

#include "base/logging.h"

namespace base {

SymmetricKey::~SymmetricKey() {
}

// static
SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm,
                                              size_t key_size_in_bits) {
  NOTIMPLEMENTED();
  return NULL;
}

// static
SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm,
                                                  const std::string& password,
                                                  const std::string& salt,
                                                  size_t iterations,
                                                  size_t key_size_in_bits) {
  NOTIMPLEMENTED();
  return NULL;
}

// static
SymmetricKey* SymmetricKey::Import(Algorithm algorithm,
                                   const std::string& raw_key) {
  NOTIMPLEMENTED();
  return NULL;
}

bool SymmetricKey::GetRawKey(std::string* raw_key) {
  NOTIMPLEMENTED();
  return false;
}

}  // namespace base