aboutsummaryrefslogtreecommitdiff
path: root/protocols/service/crypto/protobuf/opcodes.proto
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/service/crypto/protobuf/opcodes.proto')
-rw-r--r--protocols/service/crypto/protobuf/opcodes.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/protocols/service/crypto/protobuf/opcodes.proto b/protocols/service/crypto/protobuf/opcodes.proto
new file mode 100644
index 000000000..b16127ec2
--- /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;
+}