env: Implement support for encrypting environment
authorMarek Vasut <marex@denx.de>
Wed, 5 Mar 2014 18:59:51 +0000 (19:59 +0100)
committerTom Rini <trini@ti.com>
Fri, 21 Mar 2014 20:44:02 +0000 (16:44 -0400)
commita4223b746db5c2db2e1a1d4f0bb20e30484b1667
treefd79a07f7ad91a74aaa214c149df5488a5a57a44
parent7ce1526ed2bf7a7499a843d38b30095fa2894659
env: Implement support for encrypting environment

Add function which allows encrypting the whole environment block with
AES-128-CBC. The key for the environment is retrieved by
env_aes_cbc_get_key() function, which must be implemented on a per-board
basis.

Signed-off-by: Marek Vasut <marex@denx.de>
common/env_common.c
include/environment.h