[API-NEXT,PATCHv2,2/4] api: crypto: add random kind info to odp_crypto_capabilities() api

Message ID 1477432992-21770-2-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Oct. 25, 2016, 10:03 p.m.
Add the fields max_kind and max_kind_size to the
odp_crypto_capability_t struct

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
 include/odp/api/spec/crypto.h | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.7.4

Patch

diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index 0cb8814..cf81071 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -19,6 +19,8 @@ 
 extern "C" {
 #endif
 
+#include <odp/api/random.h>
+
 /** @defgroup odp_crypto ODP CRYPTO
  *  Macros, enums, types and operations to utilise crypto.
  *  @{
@@ -332,6 +334,12 @@  typedef struct odp_crypto_capability_t {
 	/** Authentication algorithms implemented with HW offload */
 	odp_crypto_auth_algos_t   hw_auths;
 
+	/** Highest kind of random data available */
+	odp_rand_kind_t max_kind;
+
+	/** Max bytes that can be requested at a time for highest
+	 *  random kind. Specify as 0 for no limit. */
+	uint32_t max_kind_size;
 } odp_crypto_capability_t;
 
 /**