-
Notifications
You must be signed in to change notification settings - Fork 7
/
lockbox-cache.h
25 lines (18 loc) · 867 Bytes
/
lockbox-cache.h
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
// Copyright (c) 2012 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 CRYPTOHOME_LOCKBOX_CACHE_H_
#define CRYPTOHOME_LOCKBOX_CACHE_H_
#include <base/files/file_path.h>
#include <base/logging.h>
#include "cryptohome/platform.h"
namespace cryptohome {
// Verify the lockbox contents at |lockbox_path| against the NVRAM space
// contents at |nvram_path| and write the lockbox contents to |cache_path| upon
// successful verification. Return value indicates verification status.
bool CacheLockbox(cryptohome::Platform* platform,
const base::FilePath& nvram_path,
const base::FilePath& lockbox_path,
const base::FilePath& cache_path);
} // namespace cryptohome
#endif // CRYPTOHOME_LOCKBOX_CACHE_H_