aboutsummaryrefslogtreecommitdiff
path: root/protocols/service/crypto/protobuf/opcodes.proto
blob: b16127ec25be336cadbcd3abb3a2f8255f417b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}