android_kernel_sony_sdm845/security/pfe/pfk_kc.h
Neeraj Soni e3af8d5f64 security: pfe: make inline crypto engine scm call based on version
Inline Crypto Engine dun setting is done based on its version.
For version <= 2 storage driver handles the dun setting.
For version > 2 dun is handled in trustzone ice driver.

Change-Id: If88ea132c4151712e8402b64b3b88bd3daf2fd18
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2018-09-06 19:00:52 +05:30

34 lines
1.3 KiB
C

/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* 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 PFK_KC_H_
#define PFK_KC_H_
#include <linux/types.h>
int pfk_kc_init(void);
int pfk_kc_deinit(void);
int pfk_kc_load_key_start(const unsigned char *key, size_t key_size,
const unsigned char *salt, size_t salt_size, u32 *key_index,
bool async, unsigned int data_unit, int ice_rev);
void pfk_kc_load_key_end(const unsigned char *key, size_t key_size,
const unsigned char *salt, size_t salt_size);
int pfk_kc_remove_key_with_salt(const unsigned char *key, size_t key_size,
const unsigned char *salt, size_t salt_size);
int pfk_kc_remove_key(const unsigned char *key, size_t key_size);
int pfk_kc_clear(void);
void pfk_kc_clear_on_reset(void);
const char *pfk_kc_get_storage_type(void);
extern char *saved_command_line;
#endif /* PFK_KC_H_ */