aboutsummaryrefslogtreecommitdiff
path: root/protocols/service/crypto/packed-c/asymmetric_encrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/service/crypto/packed-c/asymmetric_encrypt.h')
-rw-r--r--protocols/service/crypto/packed-c/asymmetric_encrypt.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/protocols/service/crypto/packed-c/asymmetric_encrypt.h b/protocols/service/crypto/packed-c/asymmetric_encrypt.h
new file mode 100644
index 000000000..9854a9549
--- /dev/null
+++ b/protocols/service/crypto/packed-c/asymmetric_encrypt.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef TS_CRYPTO_ASYMMETRIC_ENCRYPT_H
+#define TS_CRYPTO_ASYMMETRIC_ENCRYPT_H
+
+#include <stdint.h>
+
+/* Mandatory fixed sized input parameters */
+struct __attribute__ ((__packed__)) ts_crypto_asymmetric_encrypt_in
+{
+ uint32_t handle;
+ uint32_t alg;
+};
+
+/* Variable length input parameter tags */
+enum
+{
+ TS_CRYPTO_ASYMMETRIC_ENCRYPT_IN_TAG_PLAINTEXT = 1,
+ TS_CRYPTO_ASYMMETRIC_ENCRYPT_IN_TAG_SALT = 2
+};
+
+/* Variable length output parameter tags */
+enum
+{
+ TS_CRYPTO_ASYMMETRIC_ENCRYPT_OUT_TAG_CIPHERTEXT = 1
+};
+
+#endif /* TS_CRYPTO_ASYMMETRIC_ENCRYPT_H */