dm: crypto: move head file to crypto.h

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iac0f2e5eec7d0370182f7b6a2c904b4542bbbc37
This commit is contained in:
Joseph Chen 2019-12-09 18:56:49 +08:00
parent 4333cc9aff
commit 1d2a3f6ca3
2 changed files with 4 additions and 3 deletions

View File

@ -3,10 +3,7 @@
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
*/
#include <common.h>
#include <crypto.h>
#include <dm.h>
#include <u-boot/sha1.h>
u32 crypto_algo_nbits(u32 algo)
{

View File

@ -6,6 +6,10 @@
#ifndef _CORE_CRYPTO_H_
#define _CORE_CRYPTO_H_
#include <common.h>
#include <dm.h>
#include <u-boot/sha1.h>
/* Algorithms/capability of crypto, works together with crypto_algo_nbits() */
#define CRYPTO_MD5 BIT(0)
#define CRYPTO_SHA1 BIT(1)