summaryrefstree
path: root/kernel/drivers/crypto/fmp/fmp_fips_cipher.h
blob: 92f6d26d12bf2b753c2eb2e754f296ab92fecf36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * 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_FIPS_CIPHER_H_
#define _FMP_FIPS_CIPHER_H_
int fmp_cipher_set_key(struct exynos_fmp *fmp, struct fmp_fips_data *fdata,
		uint32_t mode, uint8_t *key, uint32_t key_len);
int fmp_cipher_set_iv(struct exynos_fmp *fmp, struct fmp_fips_data *fdata,
		uint32_t mode, uint8_t *iv, uint32_t iv_len);
int fmp_cipher_run(struct exynos_fmp *fmp, struct fmp_fips_data *fdata,
		uint32_t mode, uint8_t *data, uint32_t len, uint32_t write);
#endif