@@ -26,6 +26,7 @@ pub mod psa_aead_decrypt;
26
26
pub mod list_opcodes;
27
27
pub mod list_providers;
28
28
pub mod list_authenticators;
29
+ pub mod list_keys;
29
30
pub mod psa_generate_random;
30
31
pub mod psa_raw_key_agreement;
31
32
@@ -44,6 +45,8 @@ pub enum NativeOperation {
44
45
ListOpcodes ( list_opcodes:: Operation ) ,
45
46
/// ListAuthenticators operation
46
47
ListAuthenticators ( list_authenticators:: Operation ) ,
48
+ /// ListKeys operation
49
+ ListKeys ( list_keys:: Operation ) ,
47
50
/// Ping operation
48
51
Ping ( ping:: Operation ) ,
49
52
/// PsaGenerateKey operation
@@ -95,6 +98,7 @@ impl NativeOperation {
95
98
NativeOperation :: ListOpcodes ( _) => Opcode :: ListOpcodes ,
96
99
NativeOperation :: ListProviders ( _) => Opcode :: ListProviders ,
97
100
NativeOperation :: ListAuthenticators ( _) => Opcode :: ListAuthenticators ,
101
+ NativeOperation :: ListKeys ( _) => Opcode :: ListKeys ,
98
102
NativeOperation :: PsaAsymmetricEncrypt ( _) => Opcode :: PsaAsymmetricEncrypt ,
99
103
NativeOperation :: PsaAsymmetricDecrypt ( _) => Opcode :: PsaAsymmetricDecrypt ,
100
104
NativeOperation :: PsaAeadEncrypt ( _) => Opcode :: PsaAeadEncrypt ,
@@ -115,6 +119,8 @@ pub enum NativeResult {
115
119
ListOpcodes ( list_opcodes:: Result ) ,
116
120
/// ListAuthenticators result
117
121
ListAuthenticators ( list_authenticators:: Result ) ,
122
+ /// ListKeys result
123
+ ListKeys ( list_keys:: Result ) ,
118
124
/// Ping result
119
125
Ping ( ping:: Result ) ,
120
126
/// PsaGenerateKey result
@@ -166,6 +172,7 @@ impl NativeResult {
166
172
NativeResult :: ListOpcodes ( _) => Opcode :: ListOpcodes ,
167
173
NativeResult :: ListProviders ( _) => Opcode :: ListProviders ,
168
174
NativeResult :: ListAuthenticators ( _) => Opcode :: ListAuthenticators ,
175
+ NativeResult :: ListKeys ( _) => Opcode :: ListKeys ,
169
176
NativeResult :: PsaAsymmetricEncrypt ( _) => Opcode :: PsaAsymmetricEncrypt ,
170
177
NativeResult :: PsaAsymmetricDecrypt ( _) => Opcode :: PsaAsymmetricDecrypt ,
171
178
NativeResult :: PsaAeadEncrypt ( _) => Opcode :: PsaAeadEncrypt ,
@@ -225,6 +232,12 @@ impl From<list_authenticators::Operation> for NativeOperation {
225
232
}
226
233
}
227
234
235
+ impl From < list_keys:: Operation > for NativeOperation {
236
+ fn from ( op : list_keys:: Operation ) -> Self {
237
+ NativeOperation :: ListKeys ( op)
238
+ }
239
+ }
240
+
228
241
impl From < ping:: Operation > for NativeOperation {
229
242
fn from ( op : ping:: Operation ) -> Self {
230
243
NativeOperation :: Ping ( op)
@@ -338,6 +351,12 @@ impl From<list_authenticators::Result> for NativeResult {
338
351
}
339
352
}
340
353
354
+ impl From < list_keys:: Result > for NativeResult {
355
+ fn from ( op : list_keys:: Result ) -> Self {
356
+ NativeResult :: ListKeys ( op)
357
+ }
358
+ }
359
+
341
360
impl From < ping:: Result > for NativeResult {
342
361
fn from ( op : ping:: Result ) -> Self {
343
362
NativeResult :: Ping ( op)
0 commit comments