blob: 333cdce63f4f305112083d645c255479732e3ea8 [file] [log] [blame]
David Zeuthen630de2a2020-05-11 14:04:54 -04001/*
2 * Copyright 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
17#ifndef ANDROID_HARDWARE_IDENTITY_EIC_OPS_IMPL_H
18#define ANDROID_HARDWARE_IDENTITY_EIC_OPS_IMPL_H
19
20#include <stdbool.h>
21#include <stddef.h>
22#include <stdlib.h>
23
24// Add whatever includes are needed for definitions below.
25//
26
27#include <openssl/hmac.h>
28#include <openssl/sha.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34// Set the following defines to match the implementation of the supplied
35// eicOps*() operations. See EicOps.h for details.
36//
37
38#define EIC_SHA256_CONTEXT_SIZE sizeof(SHA256_CTX)
39
40#define EIC_HMAC_SHA256_CONTEXT_SIZE sizeof(HMAC_CTX)
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif // ANDROID_HARDWARE_IDENTITY_EMBEDDED_IC_H