File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
e2e_tests/tests/all_providers
src/providers/mbed_provider Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ fn list_opcodes() {
34
34
let _ = crypto_providers_opcodes. insert ( Opcode :: PsaImportKey ) ;
35
35
let _ = crypto_providers_opcodes. insert ( Opcode :: PsaExportPublicKey ) ;
36
36
37
+ let mut crypto_providers_inc_encrypt_opcodes = crypto_providers_opcodes. clone ( ) ;
38
+ let _ = crypto_providers_inc_encrypt_opcodes. insert ( Opcode :: PsaAsymmetricDecrypt ) ;
39
+ let _ = crypto_providers_inc_encrypt_opcodes. insert ( Opcode :: PsaAsymmetricEncrypt ) ;
40
+
37
41
let _ = core_provider_opcodes. insert ( Opcode :: Ping ) ;
38
42
let _ = core_provider_opcodes. insert ( Opcode :: ListProviders ) ;
39
43
let _ = core_provider_opcodes. insert ( Opcode :: ListOpcodes ) ;
@@ -60,7 +64,7 @@ fn list_opcodes() {
60
64
client
61
65
. list_opcodes( ProviderID :: MbedCrypto )
62
66
. expect( "list providers failed" ) ,
63
- crypto_providers_opcodes
67
+ crypto_providers_inc_encrypt_opcodes
64
68
) ;
65
69
}
66
70
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ mod asym_sign;
25
25
#[ allow( dead_code) ]
26
26
mod key_management;
27
27
28
- const SUPPORTED_OPCODES : [ Opcode ; 6 ] = [
28
+ const SUPPORTED_OPCODES : [ Opcode ; 8 ] = [
29
29
Opcode :: PsaGenerateKey ,
30
30
Opcode :: PsaDestroyKey ,
31
31
Opcode :: PsaSignHash ,
32
32
Opcode :: PsaVerifyHash ,
33
33
Opcode :: PsaImportKey ,
34
34
Opcode :: PsaExportPublicKey ,
35
+ Opcode :: PsaAsymmetricDecrypt ,
36
+ Opcode :: PsaAsymmetricEncrypt ,
35
37
] ;
36
38
37
39
#[ derive( Derivative ) ]
You can’t perform that action at this time.
0 commit comments