MLK-19801: Add tag functionality
authorFranck LENORMAND <franck.lenormand@nxp.com>
Fri, 5 Oct 2018 14:08:25 +0000 (16:08 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8b6f6b4474be33ee271dfe2cce79f9f6335733aa
treeba8032696cd2681d7f8af203c473772d6eae3bbc
parent9902e6c89ca5faedac6f13278d198b724887de96
MLK-19801: Add tag functionality

Add functions to tag an object with metadata(configuration).

It is possible to:
 - create metadata:
- init_tag_object_header
- init_blackey_conf
- set_tag_object_conf
 - retrieve metadata:
- get_tag_object_conf
- get_blackey_conf

The API expects an object to be a space a memory
with an address and a size.

The implementation of the tag is currently exposed
but users shouldn't access it directly, they should
use the functions provided.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit ebbb132da8e7f9de7f3d375eff8d87f684feb1eb)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/crypto/caam/Kconfig
drivers/crypto/caam/Makefile
drivers/crypto/caam/tag_object.c [new file with mode: 0644]
drivers/crypto/caam/tag_object.h [new file with mode: 0644]