blob: e166f496986ef4ded15c914c65a32f9bbddddd74 [file] [log] [blame]
Ken Sumrall8f869aa2010-12-03 03:47:09 -08001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Paul Crowleyb64933a2017-10-31 08:25:55 -070017#ifndef ANDROID_VOLD_CRYPTFS_H
18#define ANDROID_VOLD_CRYPTFS_H
19
Paul Crowley81796e92020-02-07 11:27:49 -080020#include <string>
21
Paul Crowley3d98f5d2020-02-07 11:49:09 -080022#include "KeyBuffer.h"
Paul Crowley4eac2642020-02-12 11:04:05 -080023#include "KeyUtil.h"
Paul Crowley3d98f5d2020-02-07 11:49:09 -080024
Paul Crowley3d98f5d2020-02-07 11:49:09 -080025int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev,
26 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
Paul Crowley4eac2642020-02-12 11:04:05 -080027const android::vold::KeyGeneration cryptfs_get_keygen();
Greg Kaiser57f9af62018-02-16 13:13:58 -080028
Paul Crowleyb64933a2017-10-31 08:25:55 -070029#endif /* ANDROID_VOLD_CRYPTFS_H */