kernel_samsung_a34x-permissive/security/samsung/five/five_tee_api.h
2024-04-28 15:51:13 +02:00

32 lines
1 KiB
C

/*
* FIVE TEE API
*
* Copyright (C) 2017 Samsung Electronics, Inc.
* Egor Uleyskiy, <e.uleyskiy@samsung.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __LINUX_FIVE_TEE_API_H
#define __LINUX_FIVE_TEE_API_H
#include <crypto/hash_info.h>
#include <linux/types.h>
#include <five_tee_interface.h>
int verify_hash(enum hash_algo algo, const void *hash, size_t hash_len,
const void *label, size_t label_len,
const void *signature, size_t signature_len);
int sign_hash(enum hash_algo algo, const void *hash, size_t hash_len,
const void *label, size_t label_len,
void *signature, size_t *signature_len);
#endif /* __LINUX_FIVE_TEE_API_H */