Add crypto service
Change-Id: Ifd55a4caaf0b95e3d1b6504863fba112a7e18f15
Signed-off-by: Julian Hall <julian.hall@arm.com>
diff --git a/protocols/service/crypto/protobuf/opcodes.proto b/protocols/service/crypto/protobuf/opcodes.proto
new file mode 100644
index 0000000..b16127e
--- /dev/null
+++ b/protocols/service/crypto/protobuf/opcodes.proto
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+syntax = "proto3";
+
+package ts_crypto;
+
+enum Opcode {
+ NOP = 0x0000;
+ GENERATE_KEY = 0x0101;
+ DESTROY_KEY = 0x0102;
+ OPEN_KEY = 0x0103;
+ CLOSE_KEY = 0x0104;
+ EXPORT_KEY = 0x0105;
+ EXPORT_PUBLIC_KEY = 0x0106;
+ IMPORT_KEY = 0x0107;
+ SIGN_HASH = 0x0108;
+ VERIFY_HASH = 0x0109;
+ ASYMMETRIC_DECRYPT = 0x010a;
+ ASYMMETRIC_ENCRYPT = 0x010b;
+ GENERATE_RANDOM = 0x010c;
+}