blob: 1953ccafe43fe37470f3d20d178243d7ba531681 [file] [log] [blame]
Bram Bonné79ad7262020-11-03 18:09:56 +01001/*
2 * Copyright (C) 2020 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
17package android.security;
18
19import android.security.ByteArray;
20import android.hardware.keymint.KeyParameter;
21
22/**
23 * Internal interface for performing device attestation.
24 *
25 * @hide
26 */
27interface IAttestationManager {
28 /**
29 * Attest a provided list of device identifiers.
30 *
31 * @return The signed certificate chain, with each individual certificate encoded as a byte
32 * array.
33 */
34 ByteArray[] attestDevice(
35 in KeyParameter[] deviceIdentifiers, boolean useIndividualAttestation,
36 in byte[] attestationChallenge, int securityLevel);
37}