Commit 37cbdb6 1 parent 180b8d1 commit 37cbdb6 Copy full SHA for 37cbdb6
File tree 1 file changed +6
-3
lines changed
examples/edhoc-rs-no_std/src
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ fn main() -> ! {
108
108
Some ( CRED_R ) ,
109
109
) ;
110
110
111
- let c_i: u8 = generate_connection_identifier_cbor ( ) . into ( ) ;
111
+ let c_i: u8 =
112
+ generate_connection_identifier_cbor ( & mut edhoc_crypto:: default_crypto ( ) ) . into ( ) ;
112
113
let message_1 = initiator. prepare_message_1 ( c_i) ;
113
114
assert ! ( message_1. is_ok( ) ) ;
114
115
}
@@ -134,12 +135,14 @@ fn main() -> ! {
134
135
Some ( CRED_I ) ,
135
136
) ;
136
137
137
- let c_i: u8 = generate_connection_identifier_cbor ( ) . into ( ) ;
138
+ let c_i: u8 =
139
+ generate_connection_identifier_cbor ( & mut edhoc_crypto:: default_crypto ( ) ) . into ( ) ;
138
140
let ( initiator, message_1) = initiator. prepare_message_1 ( c_i) . unwrap ( ) ; // to update the state
139
141
140
142
let responder = responder. process_message_1 ( & message_1) . unwrap ( ) ;
141
143
142
- let c_r: u8 = generate_connection_identifier_cbor ( ) . into ( ) ;
144
+ let c_r: u8 =
145
+ generate_connection_identifier_cbor ( & mut edhoc_crypto:: default_crypto ( ) ) . into ( ) ;
143
146
let ( responder, message_2) = responder. prepare_message_2 ( c_r) . unwrap ( ) ;
144
147
assert ! ( c_r != 0xff ) ;
145
148
You can’t perform that action at this time.
0 commit comments