android_kernel_samsung_a7y1.../drivers/crypto/fmp/fmp_lib.h
prashantpaddune 3bca37f224 A750FXXU4CTBC
2020-03-27 21:51:54 +05:30

35 lines
1.2 KiB
C

/*
* Copyright (C) 2016 Samsung Electronics Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef _FMP_LIB_H_
#define _FMP_LIB_H_
int fmplib_set_algo_mode(struct exynos_fmp *fmp,
struct fmp_table_setting *table,
enum fmp_crypto_algo_mode algo_mode,
enum fmp_crypto_enc_mode enc_mode,
bool cmdq_enabled);
int fmplib_set_key(struct exynos_fmp *fmp,
struct fmp_table_setting *table, char *key,
enum fmp_crypto_algo_mode algo_mode,
enum fmp_crypto_key_size key_size,
enum fmp_crypto_enc_mode enc_mode);
int fmplib_set_key_size(struct exynos_fmp *fmp,
struct fmp_table_setting *table,
enum fmp_crypto_key_size key_size,
enum fmp_crypto_enc_mode enc_mode,
bool cmdq_enabled);
int fmplib_set_iv(struct exynos_fmp *fmp,
struct fmp_table_setting *table, uint8_t *iv,
enum fmp_crypto_enc_mode enc_mode);
int fmplib_clear_disk_key(struct exynos_fmp *fmp);
int fmplib_clear(struct exynos_fmp *fmp, struct fmp_table_setting *table);
#endif