summaryrefslogtreecommitdiff
path: root/include/drivers
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad.benyossef@arm.com>2019-05-14 10:48:18 +0300
committerGilad Ben-Yossef <gilad.benyossef@arm.com>2019-07-25 13:29:15 +0300
commit36ec2bb0bcb43b012c1211d73665eebc6012fb48 (patch)
tree440f02b19502dda5a70d04ca3d22ddfce40957b1 /include/drivers
parent7871fff2a2a7459db89bea85e82b8ced09025fbe (diff)
cryptocell: move Cryptocell specific API into driver
Code using Cryptocell specific APIs was used as part of the arm common board ROT support, instead of being abstracted in Cryptocell specific driver code, creating two problems: - Any none arm board that uses Cryptocell wuld need to copy and paste the same code. - Inability to cleanly support multiple versions of Cryptocell API and products. Move over Cryptocell specific API calls into the Cryptocell driver, creating abstraction API where needed. Signed-off-by: Gilad Ben-Yossef <gilad.benyossef@arm.com> Change-Id: I9e03ddce90fcc47cfdc747098bece86dbd11c58e
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/arm/cryptocell/cc_rotpk.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drivers/arm/cryptocell/cc_rotpk.h b/include/drivers/arm/cryptocell/cc_rotpk.h
new file mode 100644
index 00000000..93984960
--- /dev/null
+++ b/include/drivers/arm/cryptocell/cc_rotpk.h
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _CC_ROTPK_H
+#define _CC_ROTPK_H
+
+int cc_get_rotpk_hash(unsigned char *dst, unsigned int len,
+ unsigned int *flags);
+
+#endif