blob: 24d71b11bca9a161a2fb960d39a75bfb82c74a22 [file] [log] [blame]
/*
* 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_init(struct exynos_fmp *fmp);
int fmp_cipher_set_key(struct exynos_fmp *fmp, uint32_t mode,
uint8_t *key, uint32_t key_len);
int fmp_cipher_set_iv(struct exynos_fmp *fmp, uint32_t mode,
uint8_t *iv, uint32_t iv_len);
int fmp_cipher_run(struct exynos_fmp *fmp, uint32_t mode, uint8_t *data,
uint32_t len, uint32_t write);
void fmp_cipher_exit(struct exynos_fmp *fmp);
#endif